Skip to content

Commit

Permalink
Add back "Empty" button for deleted files list
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Petry committed Sep 15, 2020
1 parent 3e6a1b9 commit 71b12ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/files/src/components/FilesAppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
selectedFiles.length < 1 ? $_ocTrashbin_empty() : $_deleteResources_displayDialog()
"
>
<translate>Delete</translate>
{{ $_ocAppBar_clearTrashbinButtonText }}
</oc-button>
</template>
<oc-grid v-if="displayBulkActions" gutter="small">
Expand Down Expand Up @@ -250,6 +250,10 @@ export default {
return this.$route.meta.hideFilelistActions !== true
},
$_ocAppBar_clearTrashbinButtonText() {
return this.selectedFiles.length < 1 ? this.$gettext('Empty') : this.$gettext('Delete')
},
showBreadcrumb() {
return this.$route.name === 'public-files' || this.$route.name === 'files-list'
},
Expand Down

0 comments on commit 71b12ae

Please sign in to comment.