i18 cleanup
This commit is contained in:
@@ -219,7 +219,7 @@
|
||||
} catch (e) {
|
||||
console.error("Failed to resume task:", e);
|
||||
passwordPromptErrorMessage =
|
||||
e.message || $t.migration?.resume_failed || "Failed to resume task";
|
||||
e.message || $t.migration?.resume_failed ;
|
||||
// Keep prompt open
|
||||
}
|
||||
}
|
||||
@@ -315,7 +315,7 @@
|
||||
</div>
|
||||
{:else}
|
||||
{#if loading}
|
||||
<p>{$t.migration?.loading_envs || "Loading environments..."}</p>
|
||||
<p>{$t.migration?.loading_envs }</p>
|
||||
{:else if error}
|
||||
<div
|
||||
class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded mb-4"
|
||||
@@ -326,12 +326,12 @@
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
|
||||
<EnvSelector
|
||||
label={$t.migration?.source_env || "Source Environment"}
|
||||
label={$t.migration?.source_env }
|
||||
bind:selectedId={sourceEnvId}
|
||||
{environments}
|
||||
/>
|
||||
<EnvSelector
|
||||
label={$t.migration?.target_env || "Target Environment"}
|
||||
label={$t.migration?.target_env }
|
||||
bind:selectedId={targetEnvId}
|
||||
{environments}
|
||||
/>
|
||||
@@ -340,7 +340,7 @@
|
||||
<!-- [DEF:DashboardSelectionSection:Component] -->
|
||||
<div class="mb-8">
|
||||
<h2 class="text-lg font-medium mb-4">
|
||||
{$t.migration?.select_dashboards_title || "Select Dashboards"}
|
||||
{$t.migration?.select_dashboards_title }
|
||||
</h2>
|
||||
|
||||
{#if sourceEnvId}
|
||||
@@ -383,7 +383,7 @@
|
||||
class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"
|
||||
/>
|
||||
<label for="replace-db" class="ml-2 block text-sm text-gray-900">
|
||||
{$t.migration?.replace_db || "Replace Database (Apply Mappings)"}
|
||||
{$t.migration?.replace_db }
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -391,7 +391,7 @@
|
||||
{#if replaceDb}
|
||||
<div class="mb-8 p-4 border rounded-md bg-gray-50">
|
||||
<h3 class="text-md font-medium mb-4">
|
||||
{$t.migration?.database_mappings || "Database Mappings"}
|
||||
{$t.migration?.database_mappings }
|
||||
</h3>
|
||||
{#if fetchingDbs}
|
||||
<p>
|
||||
@@ -411,7 +411,7 @@
|
||||
on:click={fetchDatabases}
|
||||
class="text-indigo-600 hover:text-indigo-500 text-sm font-medium"
|
||||
>
|
||||
{$t.migration?.refresh_dbs || "Refresh Databases & Suggestions"}
|
||||
{$t.migration?.refresh_dbs }
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -424,7 +424,7 @@
|
||||
sourceEnvId === targetEnvId ||
|
||||
selectedDashboardIds.length === 0}
|
||||
>
|
||||
{$t.migration?.start || "Start Migration"}
|
||||
{$t.migration?.start }
|
||||
</Button>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
});
|
||||
|
||||
mappings = [...mappings.filter(m => m.source_db_uuid !== sourceUuid), savedMapping];
|
||||
success = $t.migration?.mapping_saved || "Mapping saved successfully";
|
||||
success = $t.migration?.mapping_saved ;
|
||||
} catch (e) {
|
||||
error = e.message;
|
||||
}
|
||||
@@ -116,20 +116,20 @@
|
||||
|
||||
<!-- [SECTION: TEMPLATE] -->
|
||||
<div class="max-w-6xl mx-auto p-6">
|
||||
<PageHeader title={$t.migration?.mapping_management || "Database Mapping Management"} />
|
||||
<PageHeader title={$t.migration?.mapping_management } />
|
||||
|
||||
{#if loading}
|
||||
<p>{$t.migration?.loading_envs || "Loading environments..."}</p>
|
||||
<p>{$t.migration?.loading_envs }</p>
|
||||
{:else}
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
|
||||
<EnvSelector
|
||||
label={$t.migration?.source_env || "Source Environment"}
|
||||
label={$t.migration?.source_env }
|
||||
bind:selectedId={sourceEnvId}
|
||||
{environments}
|
||||
on:change={() => { sourceDatabases = []; mappings = []; suggestions = []; }}
|
||||
/>
|
||||
<EnvSelector
|
||||
label={$t.migration?.target_env || "Target Environment"}
|
||||
label={$t.migration?.target_env }
|
||||
bind:selectedId={targetEnvId}
|
||||
{environments}
|
||||
on:change={() => { targetDatabases = []; mappings = []; suggestions = []; }}
|
||||
@@ -142,7 +142,7 @@
|
||||
disabled={!sourceEnvId || !targetEnvId || sourceEnvId === targetEnvId || fetchingDbs}
|
||||
isLoading={fetchingDbs}
|
||||
>
|
||||
{$t.migration?.fetch_dbs || "Fetch Databases & Suggestions"}
|
||||
{$t.migration?.fetch_dbs }
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
on:update={handleUpdate}
|
||||
/>
|
||||
{:else if !fetchingDbs && sourceEnvId && targetEnvId}
|
||||
<p class="text-gray-500 italic">{$t.migration?.mapping_hint || 'Select environments and click "Fetch Databases" to start mapping.'}</p>
|
||||
<p class="text-gray-500 italic">{$t.migration?.mapping_hint }</p>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user