This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/* Xeslint-disable */
|
/* XXXeslint-disable */
|
||||||
//import { processLogout } from "./authutil";
|
//import { processLogout } from "./authutil";
|
||||||
|
|
||||||
/////////////////////////////////
|
/////////////////////////////////
|
||||||
@@ -62,9 +62,13 @@ export default {
|
|||||||
data: "about"
|
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
|
//add customize menu item
|
||||||
//DIVIDER
|
//DIVIDER
|
||||||
//Insert the devider between context and global items
|
//Insert the devider between context and global items
|
||||||
@@ -73,7 +77,8 @@ export default {
|
|||||||
vm.appBar.menuItems.push({
|
vm.appBar.menuItems.push({
|
||||||
title: vm.$gzlocale.get("Customize"),
|
title: vm.$gzlocale.get("Customize"),
|
||||||
icon: "sliders-h",
|
icon: "sliders-h",
|
||||||
key: "app:nav:customize"
|
data: ctx.formData.ayaType,
|
||||||
|
key: "app:customize"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -140,6 +145,12 @@ export default {
|
|||||||
case "logout":
|
case "logout":
|
||||||
vm.$router.push({ name: "login" });
|
vm.$router.push({ name: "login" });
|
||||||
break;
|
break;
|
||||||
|
case "customize":
|
||||||
|
vm.$router.push({
|
||||||
|
name: "customize",
|
||||||
|
params: { ayatype: item.data }
|
||||||
|
});
|
||||||
|
break;
|
||||||
case "nav":
|
case "nav":
|
||||||
vm.$router.push({ name: item.data });
|
vm.$router.push({ name: item.data });
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -137,6 +137,12 @@ export default new Router({
|
|||||||
component: () =>
|
component: () =>
|
||||||
import(/* webpackChunkName: "inventory-widget-edit" */ "./views/inventory-widget-edit.vue")
|
import(/* webpackChunkName: "inventory-widget-edit" */ "./views/inventory-widget-edit.vue")
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/customize/:ayatype",
|
||||||
|
name: "customize",
|
||||||
|
component: () =>
|
||||||
|
import(/* webpackChunkName: "inventory-widget-edit" */ "./views/customize.vue")
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "*",
|
path: "*",
|
||||||
name: "notfound",
|
name: "notfound",
|
||||||
|
|||||||
20
ayanova/src/views/customize.vue
Normal file
20
ayanova/src/views/customize.vue
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<template>
|
||||||
|
<UnderConstruction />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import UnderConstruction from "../components/underconstruction.vue";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
UnderConstruction
|
||||||
|
},
|
||||||
|
beforeCreate() {
|
||||||
|
this.$gzevent.$emit("menu-change", {
|
||||||
|
isMain: true,
|
||||||
|
icon: "sliders-h",
|
||||||
|
title: this.$gzlocale.get("Customize")
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@@ -563,6 +563,7 @@ function generateMenu(vm) {
|
|||||||
icon: "fa-splotch",
|
icon: "fa-splotch",
|
||||||
title: vm.$gzlocale.get("Widget"),
|
title: vm.$gzlocale.get("Widget"),
|
||||||
helpUrl: "intro/#searching",
|
helpUrl: "intro/#searching",
|
||||||
|
formData: { formKey: FORM_KEY, ayaType: vm.$gztype.Widget },
|
||||||
menuItems: []
|
menuItems: []
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user