From 6b93c2587c9b29cdd2561e29f731b665a372c4be Mon Sep 17 00:00:00 2001 From: Jacob Noah Date: Thu, 20 Jul 2023 12:38:31 +0200 Subject: [PATCH] Display empty trash bin if deleted files --- .../composables/actions/files/useFileActionsEmptyTrashBin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web-app-files/src/composables/actions/files/useFileActionsEmptyTrashBin.ts b/packages/web-app-files/src/composables/actions/files/useFileActionsEmptyTrashBin.ts index 41d96fc8a9e..47273c6cbe5 100644 --- a/packages/web-app-files/src/composables/actions/files/useFileActionsEmptyTrashBin.ts +++ b/packages/web-app-files/src/composables/actions/files/useFileActionsEmptyTrashBin.ts @@ -89,7 +89,7 @@ export const useFileActionsEmptyTrashBin = ({ store }: { store?: Store } = return false } - return true + return store.getters['Files/activeFiles'].length > 0 }, componentType: 'button', class: 'oc-files-actions-empty-trash-bin-trigger',