This commit is contained in:
@@ -67,7 +67,7 @@ export default {
|
||||
|
||||
if (
|
||||
ctx.formData &&
|
||||
vm.$gzrole.hasRole(vm.$gzrole.AUTHORIZATION_ROLES.BizAdminFull)
|
||||
window.$gz.role.hasRole(window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull)
|
||||
) {
|
||||
//add customize menu item
|
||||
//DIVIDER
|
||||
|
||||
@@ -168,7 +168,7 @@ export default {
|
||||
}
|
||||
},
|
||||
beforeCreate() {
|
||||
// console.log("custom-fields-control::BEFORECREATE: TOP");
|
||||
// console.log("custom-fields-control::BEFORECREATE: TOP");
|
||||
//check pre-requisites exist just in case
|
||||
if (this.$gzdevmode()) {
|
||||
if (!this.$_) {
|
||||
@@ -184,7 +184,7 @@ export default {
|
||||
//var v=this.$store.state.formCustomTemplate[this.formKey];
|
||||
},
|
||||
created() {
|
||||
// console.log("custom-fields-control::BEFORECREATE: TOP");
|
||||
// console.log("custom-fields-control::BEFORECREATE: TOP");
|
||||
if (this.$gzdevmode()) {
|
||||
//debugger;
|
||||
if (!this.formKey) {
|
||||
|
||||
@@ -114,7 +114,7 @@ export default {
|
||||
})
|
||||
.then(() => {
|
||||
//don't have access to local data object until here
|
||||
that.rights = this.$gzrole.getRights(this, window.$gz.type.Widget);
|
||||
that.rights = window.$gz.role.getRights(this, window.$gz.type.Widget);
|
||||
var formSettings = that.$gzform.getFormSettings(FORM_KEY);
|
||||
/**
|
||||
* {
|
||||
@@ -158,7 +158,7 @@ export default {
|
||||
appError: null,
|
||||
serverError: {}
|
||||
},
|
||||
rights: this.$gzrole.defaultRightsObject(),
|
||||
rights: window.$gz.role.defaultRightsObject(),
|
||||
totalItems: 0,
|
||||
Items: [],
|
||||
loading: true,
|
||||
|
||||
@@ -260,7 +260,7 @@ export default {
|
||||
});
|
||||
},
|
||||
created() {
|
||||
this.rights = this.$gzrole.getRights(this, window.$gz.type.Widget);
|
||||
this.rights = window.$gz.role.getRights(this, window.$gz.type.Widget);
|
||||
|
||||
this.$gzevent.$on("menu-click", clickHandler);
|
||||
//id 0 means create a new record don't load one
|
||||
@@ -343,7 +343,7 @@ export default {
|
||||
appError: null,
|
||||
serverError: {}
|
||||
},
|
||||
rights: this.$gzrole.defaultRightsObject()
|
||||
rights: window.$gz.role.defaultRightsObject()
|
||||
};
|
||||
},
|
||||
//WATCHERS
|
||||
|
||||
Reference in New Issue
Block a user