diff --git a/src/module/alertModal.js b/src/module/alertModal.js index 647a3d6..6a04bf0 100644 --- a/src/module/alertModal.js +++ b/src/module/alertModal.js @@ -328,12 +328,13 @@ export async function renameModal(rename, type, id) { * @param { string } files 有關連的檔案 * @param { string } type * @param { number } id + * @param { string } name 原本的檔案 */ -export async function deleteFileModal(files, type, id) { +export async function deleteFileModal(files, type, id, name) { const filesStore = FilesStore(); - let htmlText = files.length === 0 ? '' : `
All related files will be deleted.
List of file(s) to delete:
Do you really want to delete ${name}?
The following dependent file(s) will also be deleted: