diff options
author | Christopher Ng <chrng8@gmail.com> | 2024-12-12 10:45:03 -0800 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2024-12-12 10:47:09 -0800 |
commit | aa1944e81967673c1309125595c42a238aa78067 (patch) | |
tree | f4fc569526140125dc69c81de3f200e2a9b5a678 | |
parent | 1f419c975e4a7203168f26f7befdae5bfca0c528 (diff) | |
download | nextcloud-server-aa1944e81967673c1309125595c42a238aa78067.tar.gz nextcloud-server-aa1944e81967673c1309125595c42a238aa78067.zip |
fix(trashbin): Fix infinitely loading empty trash action on close
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r-- | apps/files_trashbin/src/fileListActions/emptyTrashAction.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<void> { - const askConfirmation = new Promise((resolve) => { + const askConfirmation = new Promise<boolean>((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) }) }) |