test: Delete file. Done.
This commit is contained in:
@@ -334,7 +334,7 @@ export async function deleteFileModal(files, type, id, name) {
|
||||
const filesStore = FilesStore();
|
||||
let htmlText = files.length === 0 ? `Do you really want to delete <span class="text-primary">${name}</span>?` : `<div class="text-left mx-4 space-y-1"><p class="mb-2">Do you really want to delete <span class="text-primary">${name}</span>?</p><p>The following dependent file(s) will also be deleted:</p><ul class="list-disc ml-6">${files}</ul></div>`;
|
||||
const result = await Swal.fire({
|
||||
title: 'Confirm Deletion?',
|
||||
title: 'Confirm Deletion',
|
||||
html: htmlText,
|
||||
icon: 'warning',
|
||||
iconColor: '#FF3366',
|
||||
|
||||
Reference in New Issue
Block a user