This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Xeslint-disable */
|
||||
/* XXXeslint-disable */
|
||||
//import { processLogout } from "./authutil";
|
||||
|
||||
/////////////////////////////////
|
||||
@@ -62,9 +62,13 @@ export default {
|
||||
data: "about"
|
||||
});
|
||||
|
||||
//Customize menu item for biz admin full
|
||||
//CUSTOMIZE
|
||||
//set custom fields and link to locale text editor
|
||||
|
||||
if (vm.$gzrole.hasRole(vm.$gzrole.AUTHORIZATION_ROLES.BizAdminFull)) {
|
||||
if (
|
||||
ctx.formData &&
|
||||
vm.$gzrole.hasRole(vm.$gzrole.AUTHORIZATION_ROLES.BizAdminFull)
|
||||
) {
|
||||
//add customize menu item
|
||||
//DIVIDER
|
||||
//Insert the devider between context and global items
|
||||
@@ -73,7 +77,8 @@ export default {
|
||||
vm.appBar.menuItems.push({
|
||||
title: vm.$gzlocale.get("Customize"),
|
||||
icon: "sliders-h",
|
||||
key: "app:nav:customize"
|
||||
data: ctx.formData.ayaType,
|
||||
key: "app:customize"
|
||||
});
|
||||
}
|
||||
},
|
||||
@@ -140,6 +145,12 @@ export default {
|
||||
case "logout":
|
||||
vm.$router.push({ name: "login" });
|
||||
break;
|
||||
case "customize":
|
||||
vm.$router.push({
|
||||
name: "customize",
|
||||
params: { ayatype: item.data }
|
||||
});
|
||||
break;
|
||||
case "nav":
|
||||
vm.$router.push({ name: item.data });
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user