test: Delete file. Done.

This commit is contained in:
chiayin committed 2024-01-25 10:48:40 +08:00
1 parent 56408e8b85
commit 6d6c4cc4ac
2 files changed
+45 -32

No files matched your search

+1 -1
View File
@@ -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',