diff --git a/packages/web/src/modals/ExportDatabaseDumpModal.svelte b/packages/web/src/modals/ExportDatabaseDumpModal.svelte index 3ece7323..ec84c04b 100644 --- a/packages/web/src/modals/ExportDatabaseDumpModal.svelte +++ b/packages/web/src/modals/ExportDatabaseDumpModal.svelte @@ -15,6 +15,7 @@ import { closeCurrentModal, showModal } from './modalTools'; import InputTextModal from './InputTextModal.svelte'; import { apiCall } from '../utility/api'; + import getConnectionLabel from '../utility/getConnectionLabel'; export let connection; @@ -89,9 +90,16 @@ Export database dump -
Target: {outputLabel}
+
+ Source: + {getConnectionLabel(connection)} + {#if connection.database} + ({connection.database}) + {/if} +
-
+
Target: {outputLabel}
+
{#if electron} {:else} diff --git a/packages/web/src/modals/ImportDatabaseDumpModal.svelte b/packages/web/src/modals/ImportDatabaseDumpModal.svelte index 56ad3c85..3dc8fa3f 100644 --- a/packages/web/src/modals/ImportDatabaseDumpModal.svelte +++ b/packages/web/src/modals/ImportDatabaseDumpModal.svelte @@ -9,6 +9,7 @@ import { currentDropDownMenu } from '../stores'; import { apiCall } from '../utility/api'; import { importSqlDump } from '../utility/exportFileTools'; + import getConnectionLabel from '../utility/getConnectionLabel'; import getElectron from '../utility/getElectron'; import { setUploadListener } from '../utility/uploadFiles'; import ChangeDownloadUrlModal from './ChangeDownloadUrlModal.svelte'; @@ -90,9 +91,9 @@ Import database dump -
Source: {inputLabel}
+
Source: {inputLabel}
-
+
{#if electron} {:else} @@ -103,6 +104,14 @@
+
+ Target: + {getConnectionLabel(connection)} + {#if connection.database} + ({connection.database}) + {/if} +
+ handleSubmit(e.detail)} disabled={!inputFile} />