From ada7ee7cab9f2c6738a29cbd13ecf959dcb084ed Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sun, 13 Feb 2022 09:16:23 +0100 Subject: [PATCH] current db/archive buttons --- .../web/src/impexp/SourceTargetConfig.svelte | 51 +++++++++---------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/packages/web/src/impexp/SourceTargetConfig.svelte b/packages/web/src/impexp/SourceTargetConfig.svelte index 913451db..1574668a 100644 --- a/packages/web/src/impexp/SourceTargetConfig.svelte +++ b/packages/web/src/impexp/SourceTargetConfig.svelte @@ -69,31 +69,31 @@ {/if} - {#if direction == 'target'} -
- {#if $currentDatabase} - { - values.update(x => ({ - ...x, - [storageTypeField]: 'database', - [connectionIdField]: $currentDatabase?.connection?._id, - [databaseNameField]: $currentDatabase?.name, - })); - }} - /> - {/if} +
+ {#if $currentDatabase} { values.update(x => ({ ...x, - [storageTypeField]: 'archive', - [archiveFolderField]: $currentArchive, + [storageTypeField]: 'database', + [connectionIdField]: $currentDatabase?.connection?._id, + [databaseNameField]: $currentDatabase?.name, })); }} /> + {/if} + { + values.update(x => ({ + ...x, + [storageTypeField]: 'archive', + [archiveFolderField]: $currentArchive, + })); + }} + /> + {#if direction == 'target'} { @@ -104,8 +104,8 @@ })); }} /> -
- {/if} + {/if} +
x.directions.includes(direction))} @@ -170,12 +170,11 @@ {/if} {#if driver?.importExportArgs} - !arg.direction || arg.direction == direction)} - namePrefix={`${direction}_${driver.engine}_`} - /> -{/if} - + !arg.direction || arg.direction == direction)} + namePrefix={`${direction}_${driver.engine}_`} + /> + {/if}