@@ -53,6 +53,7 @@ import Papa from 'papaparse';
5353import { Dialog } from ' @/afcl' ;
5454import { useI18n } from ' vue-i18n' ;
5555
56+
5657const { t } = useI18n ();
5758
5859const importProgress: Ref <boolean > = ref (false );
@@ -70,9 +71,9 @@ const computedButtons = computed(() => {
7071 const buttons = [
7172 { label: t (' ⚠️ Import All — Replace & Overwrite' ), onclick : (dialog ) => { confirmImport (dialog ) }, visible: importStats .value .existingCount > 0 && importStats .value .newCount > 0 },
7273 { label: t (' ⚠️ Replace Existing Records' ), onclick : (dialog ) => { confirmImport (dialog ) }, visible: importStats .value .existingCount > 0 && importStats .value .newCount === 0 },
73- { label: t (' ➕ Import New Only' ), onclick : (dialog ) => { confirmImportNewOnly (dialog ) }, visible: importStats .value .existingCount > 0 && importStats .value .newCount > 0 },
74- { label: t (' ➕ Import Records' ), onclick : (dialog ) => { confirmImportNewOnly (dialog ) }, visible: importStats .value .existingCount === 0 && importStats .value .newCount > 0 },
75- { label: t (' ✖ Cancel' ), onclick : (dialog ) => dialog .hide () }
74+ { label: t (' Import New Only' ), onclick : (dialog ) => { confirmImportNewOnly (dialog ) }, visible: importStats .value .existingCount > 0 && importStats .value .newCount > 0 },
75+ { label: t (' Import Records' ), onclick : (dialog ) => { confirmImportNewOnly (dialog ) }, visible: importStats .value .existingCount === 0 && importStats .value .newCount > 0 },
76+ { label: t (' Cancel' ), onclick : (dialog ) => dialog .hide () }
7677 ];
7778
7879 return buttons .filter (button => button .visible !== false );
0 commit comments