diff --git a/ayanova/src/api/gzmenu.js b/ayanova/src/api/gzmenu.js
index 91cdd454..73b8c652 100644
--- a/ayanova/src/api/gzmenu.js
+++ b/ayanova/src/api/gzmenu.js
@@ -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;
diff --git a/ayanova/src/router.js b/ayanova/src/router.js
index ed2a53ae..b64c7159 100644
--- a/ayanova/src/router.js
+++ b/ayanova/src/router.js
@@ -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",
diff --git a/ayanova/src/views/customize.vue b/ayanova/src/views/customize.vue
new file mode 100644
index 00000000..faba3c65
--- /dev/null
+++ b/ayanova/src/views/customize.vue
@@ -0,0 +1,20 @@
+
+
+
+
+
diff --git a/ayanova/src/views/inventory-widget-edit.vue b/ayanova/src/views/inventory-widget-edit.vue
index 00f46d79..576ec3ed 100644
--- a/ayanova/src/views/inventory-widget-edit.vue
+++ b/ayanova/src/views/inventory-widget-edit.vue
@@ -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: []
};