Skip to content

Commit

Permalink
fix: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jjxie committed Jun 23, 2021
1 parent 80a9fdf commit 315191c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ export default {
return snapshotLayout;
},
getContextMenu (obj, menu) {
if (!this.$scope.layout.allowexportxls) {
return menu;
}

if (this.backendApi.model.layout.qMeta.privileges.indexOf('exportdata') !== -1) {
menu.addItem({
translation: 'Export as XLS',
Expand Down

0 comments on commit 315191c

Please sign in to comment.