Skip to content

Commit 5d15843

Browse files
committed
fix: update import confirmation dialog buttons
1 parent 31e754b commit 5d15843

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

custom/ImportCsv.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ const props = defineProps({
5252
});
5353
const computedButtons = computed(() => {
5454
if (!importStats.value) return [];
55-
55+
5656
const buttons = [
57-
{ label: t('⚠️ Replace Existing Records'), onclick: (dialog) => { confirmImport(dialog) }, vIf: importStats.value.existingCount > 0 && importStats.value.newCount === 0 },
58-
{ label: t('Import New Only'), onclick: (dialog) => { confirmImportNewOnly(dialog) }, vIf: importStats.value.existingCount > 0 && importStats.value.newCount === 0 },
5957
{ label: t('⚠️ Import All — Replace & Overwrite'), onclick: (dialog) => { confirmImport(dialog) }, vIf: importStats.value.existingCount > 0 && importStats.value.newCount > 0 },
60-
{ label: t('Import Records'), onclick: (dialog) => { confirmImportNewOnly(dialog) }, vIf: !(importStats.value.existingCount > 0 && importStats.value.newCount === 0) },
61-
{ label: t('Cancel'), onclick: (dialog) => dialog.hide() }
58+
{ label: t('⚠️ Replace Existing Records'), onclick: (dialog) => { confirmImport(dialog) }, vIf: importStats.value.existingCount > 0 && importStats.value.newCount === 0 },
59+
{ label: t('➕ Import New Only'), onclick: (dialog) => { confirmImportNewOnly(dialog) }, vIf: importStats.value.existingCount > 0 && importStats.value.newCount > 0 },
60+
{ label: t('➕ Import Records'), onclick: (dialog) => { confirmImportNewOnly(dialog) }, vIf: importStats.value.existingCount === 0 && importStats.value.newCount > 0 },
61+
{ label: t('✖ Cancel'), onclick: (dialog) => dialog.hide() }
6262
];
6363
6464
return buttons.filter(button => button.vIf !== false);

0 commit comments

Comments
 (0)