Skip to content

Commit

Permalink
check for delete
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed Feb 7, 2022
1 parent c576dc7 commit 3fc11cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default {
return api.canEdit && (typeof this.item.canEdit !== 'undefined' ? this.item.canEdit : true);
},
canDelete() {
return api.canEdit && (typeof this.item.canDelete !== 'undefined' ? this.item.canDelete : true);
return api.canDelete && (typeof this.item.canDelete !== 'undefined' ? this.item.canDelete : true);
},
canOpenEditView() {
return ['jpg', 'jpeg', 'png'].includes(this.item.extension.toLowerCase());
Expand Down

0 comments on commit 3fc11cc

Please sign in to comment.