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;
|
||||
|
||||
@@ -137,6 +137,12 @@ export default new Router({
|
||||
component: () =>
|
||||
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: "*",
|
||||
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",
|
||||
title: vm.$gzlocale.get("Widget"),
|
||||
helpUrl: "intro/#searching",
|
||||
formData: { formKey: FORM_KEY, ayaType: vm.$gztype.Widget },
|
||||
menuItems: []
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user