diff --git a/frontend/src/lib/components/layout/TopNavbar.svelte b/frontend/src/lib/components/layout/TopNavbar.svelte index fb7a9b57..48812e72 100644 --- a/frontend/src/lib/components/layout/TopNavbar.svelte +++ b/frontend/src/lib/components/layout/TopNavbar.svelte @@ -490,13 +490,7 @@ {/each} - {#if isProdContext} - - PROD - - {/if} + {/if} diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 4b104504..79b24366 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -66,30 +66,17 @@ -
+
+ {#if isProductionContext} + + PROD + + {/if}
- {#if isProductionContext} -
-
-
- -
-
- {$t.common?.prod_context_warning || "PROD context active"}: - {selectedEnvironment?.name || selectedEnvironment?.id || 'environment'} -
- -
-
- {/if} - -
+
{@render children?.()}
diff --git a/frontend/src/routes/translate/[id]/+page.svelte b/frontend/src/routes/translate/[id]/+page.svelte index 6271bb0d..0b3c2c0a 100644 --- a/frontend/src/routes/translate/[id]/+page.svelte +++ b/frontend/src/routes/translate/[id]/+page.svelte @@ -75,8 +75,8 @@
-
-
+
+

{m.isNewJob ? _t.translate?.config?.new_title : _t.translate?.config?.edit_title}

@@ -84,11 +84,17 @@

{_t.translate?.config?.id_label.replace('{id}', m.existingJob.id)}

{/if}
-
- -
@@ -127,12 +133,12 @@ {:else if m.uxState === 'configured' || m.uxState === 'saving' || m.uxState === 'validation_error' || m.uxState === 'idle'}
-
+ +
m.markDirty()} onchange={() => m.markDirty()}> +
{ m.schemaValidated = ok; }} /> {:else}
@@ -232,6 +245,20 @@
{#if !m.isNewJob && m.existingJob} + +
+ {_t.translate?.config?.insert_method || 'Insert Method'}: + + {#if m.insertMethod === 'direct_db'} + + {_t.translate?.config?.insert_method_direct_db || 'Direct DB'} + {:else} + + {_t.translate?.config?.insert_method_sqllab || 'SQL Lab'} + {/if} + +
m.handleTriggerRun(full)} onRetryRun={() => m.handleRetryRun()} onRetryInsert={() => m.handleRetryInsert()} @@ -250,6 +278,7 @@ onToggleRunDetails={(id) => m.toggleRunDetails(id)} onBulkReplaceApplied={() => { m.showPageBulkReplace = false; m.loadRunHistory(); }} onBulkReplaceClose={() => m.showPageBulkReplace = false} + onGoToTargetTab={() => m.activeTab = 'target'} /> {:else}
@@ -257,6 +286,7 @@
{/if}
+
{/if}