Skip to content

Commit

Permalink
Display empty trash bin if deleted files (#9457)
Browse files Browse the repository at this point in the history
* Display empty trash bin if deleted files

* Revert "Display empty trash bin if deleted files"

This reverts commit 6b93c25.

* Empty trash disabled if empty
  • Loading branch information
jacob-nv authored and Jan committed Aug 15, 2023
1 parent 7f5b941 commit e063462
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ export const useFileActionsEmptyTrashBin = ({ store }: { store?: Store<any> } =

return true
},
isDisabled: () => {
return store.getters['Files/activeFiles'].length === 0
},
componentType: 'button',
class: 'oc-files-actions-empty-trash-bin-trigger',
variation: 'danger',
Expand Down

0 comments on commit e063462

Please sign in to comment.