From aa1944e81967673c1309125595c42a238aa78067 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Thu, 12 Dec 2024 10:45:03 -0800 Subject: fix(trashbin): Fix infinitely loading empty trash action on close Signed-off-by: Christopher Ng --- apps/files_trashbin/src/fileListActions/emptyTrashAction.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files_trashbin') diff --git a/apps/files_trashbin/src/fileListActions/emptyTrashAction.ts b/apps/files_trashbin/src/fileListActions/emptyTrashAction.ts index 4eebbb3be85..25e3083abb9 100644 --- a/apps/files_trashbin/src/fileListActions/emptyTrashAction.ts +++ b/apps/files_trashbin/src/fileListActions/emptyTrashAction.ts @@ -46,7 +46,7 @@ export const emptyTrashAction = new FileListAction({ }, async exec(view: View, nodes: Node[]): Promise { - const askConfirmation = new Promise((resolve) => { + const askConfirmation = new Promise((resolve) => { const dialog = getDialogBuilder(t('files_trashbin', 'Confirm permanent deletion')) .setSeverity(DialogSeverity.Warning) // TODO Add note for groupfolders @@ -65,7 +65,7 @@ export const emptyTrashAction = new FileListAction({ ]) .build() dialog.show().then(() => { - dialog.hide() + resolve(false) }) }) -- cgit v1.2.3