@@ -54,14 +54,14 @@ const computedButtons = computed(() => {
54
54
if (! importStats .value ) return [];
55
55
56
56
const buttons = [
57
- { label: t (' ⚠️ Import All — Replace & Overwrite' ), onclick : (dialog ) => { confirmImport (dialog ) }, vIf : importStats .value .existingCount > 0 && importStats .value .newCount > 0 },
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 },
57
+ { label: t (' ⚠️ Import All — Replace & Overwrite' ), onclick : (dialog ) => { confirmImport (dialog ) }, visible : importStats .value .existingCount > 0 && importStats .value .newCount > 0 },
58
+ { label: t (' ⚠️ Replace Existing Records' ), onclick : (dialog ) => { confirmImport (dialog ) }, visible : importStats .value .existingCount > 0 && importStats .value .newCount === 0 },
59
+ { label: t (' ➕ Import New Only' ), onclick : (dialog ) => { confirmImportNewOnly (dialog ) }, visible : importStats .value .existingCount > 0 && importStats .value .newCount > 0 },
60
+ { label: t (' ➕ Import Records' ), onclick : (dialog ) => { confirmImportNewOnly (dialog ) }, visible : importStats .value .existingCount === 0 && importStats .value .newCount > 0 },
61
61
{ label: t (' ✖ Cancel' ), onclick : (dialog ) => dialog .hide () }
62
62
];
63
63
64
- return buttons .filter (button => button .vIf !== false );
64
+ return buttons .filter (button => button .visible !== false );
65
65
});
66
66
async function confirmImport(dialog ) {
67
67
dialog .hide ();
0 commit comments