aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-12-12 10:45:03 -0800
committerChristopher Ng <chrng8@gmail.com>2024-12-12 10:47:09 -0800
commitaa1944e81967673c1309125595c42a238aa78067 (patch)
treef4fc569526140125dc69c81de3f200e2a9b5a678
parent1f419c975e4a7203168f26f7befdae5bfca0c528 (diff)
downloadnextcloud-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.ts4
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)
})
})