diff --git a/src/components/ListTable/TableAction/LeftSide.vue b/src/components/ListTable/TableAction/LeftSide.vue index 1217d5610..a81f3bac7 100644 --- a/src/components/ListTable/TableAction/LeftSide.vue +++ b/src/components/ListTable/TableAction/LeftSide.vue @@ -72,7 +72,7 @@ export default { title: this.$t('common.Create'), type: 'primary', has: this.hasCreate && !this.moreCreates, - can: true, + can: this.canCreate, callback: this.handleCreate } ] diff --git a/src/layout/components/GenericListTable/index.vue b/src/layout/components/GenericListTable/index.vue index 1f223a184..d4114ec1f 100644 --- a/src/layout/components/GenericListTable/index.vue +++ b/src/layout/components/GenericListTable/index.vue @@ -19,8 +19,7 @@ export default { if (canCreate === null && this.currentOrgIsRoot) { _.set(attrs, 'header-actions.canCreate', false) } - // attrs.headerActions.can - // console.log() + this.$log.debug('List table Attrs: ', attrs) return attrs } }