-
- {{ filename }}
+
+
+
+
@@ -54,7 +60,7 @@
:title="t('general.refresh')"
@click="refresh"
>
-
+
@@ -316,6 +322,7 @@ const options: Ref
> = ref({
sqlInsertDivider: 'bytes' as 'bytes' | 'rows'
});
const basePath = ref('');
+const chosenFilename = ref('');
const currentWorkspace = computed(() => getWorkspace(selectedWorkspace.value));
const clientCustoms: Ref = computed(() => currentWorkspace.value.customizations);
@@ -328,9 +335,9 @@ const schemaItems = computed(() => {
});
const filename = computed(() => {
const date = moment().format('YYYY-MM-DD_HH-mm-ss');
- return `${props.selectedSchema}_${date}.${options.value.outputFormat}`;
+ return `${props.selectedSchema}_${date}`;
});
-const dumpFilePath = computed(() => `${basePath.value}/${filename.value}`);
+const dumpFilePath = computed(() => `${basePath.value}/${chosenFilename.value || filename.value}.${options.value.outputFormat}`);
const includeStructureStatus = computed(() => {
if (tables.value.every(item => item.includeStructure)) return 1;
else if (tables.value.some(item => item.includeStructure)) return 2;
diff --git a/src/renderer/i18n/en-US.ts b/src/renderer/i18n/en-US.ts
index e79a7f51..44510a67 100644
--- a/src/renderer/i18n/en-US.ts
+++ b/src/renderer/i18n/en-US.ts
@@ -290,6 +290,7 @@ export const enUS = {
color: 'Color',
label: 'Label',
icon: 'Icon',
+ fileName: 'File name',
madeWithJS: 'Made with 💛 and JavaScript!',
checkForUpdates: 'Check for updates',
noUpdatesAvailable: 'No updates available',