currentFile.value?.url));
class="q-ml-sm"
@click="
() => {
- const tempValue = treeFile.find(
- (v: any) => v.label === $t(currentMode),
- );
-
- if (!tempValue) return;
-
- const idx = tempValue.file?.findIndex(
- (v: any) => v.label === currentFileSelected,
- );
-
- dialog({
- color: 'negative',
- icon: 'mdi-alert',
- title: $t('dialog.title.confirmDelete'),
- actionText: $t('general.delete'),
- persistent: true,
- message: $t('dialog.message.confirmDelete'),
- action: async () => {
- $emit('deleteFile', currentFileSelected);
-
- currentFileSelected = tempValue.file?.[idx - 1].label || '';
- },
-
- cancel: () => {},
- });
+ deleteFile();
}
"
/>