This commit is contained in:
@@ -80,7 +80,7 @@ export default {
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.locale.get("Customize"),
|
||||
icon: "sliders-h",
|
||||
data: ctx.formData.ayaType,
|
||||
data: ctx.formData.formCustomTemplateKey,
|
||||
key: "app:customize"
|
||||
});
|
||||
}
|
||||
@@ -151,7 +151,7 @@ export default {
|
||||
case "customize":
|
||||
vm.$router.push({
|
||||
name: "customize",
|
||||
params: { ayatype: item.data }
|
||||
params: { formCustomTemplateKey: item.data }
|
||||
});
|
||||
break;
|
||||
case "nav":
|
||||
|
||||
@@ -135,13 +135,17 @@ export default new Router({
|
||||
path: "/inventory/widget/edit/:id",
|
||||
name: "inventory-widget-edit",
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "inventory-widget-edit" */ "./views/inventory-widget-edit.vue")
|
||||
import(
|
||||
/* webpackChunkName: "inventory-widget-edit" */ "./views/inventory-widget-edit.vue"
|
||||
)
|
||||
},
|
||||
{
|
||||
path: "/customize/:ayatype",
|
||||
path: "/customize/:formCustomTemplateKey",
|
||||
name: "customize",
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "inventory-widget-edit" */ "./views/customize.vue")
|
||||
import(
|
||||
/* webpackChunkName: "inventory-widget-edit" */ "./views/customize.vue"
|
||||
)
|
||||
},
|
||||
{
|
||||
path: "*",
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
<template>
|
||||
<UnderConstruction />
|
||||
<h1>CUSTOMIZE: {{ formCustomTemplateKey }}</h1>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import UnderConstruction from "../components/underconstruction.vue";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
UnderConstruction
|
||||
data() {
|
||||
return {
|
||||
formCustomTemplateKey: this.$route.params.formCustomTemplateKey
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
beforeCreate() {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
|
||||
@@ -666,7 +666,11 @@ function generateMenu(vm) {
|
||||
icon: "fa-splotch",
|
||||
title: window.$gz.locale.get("Widget"),
|
||||
helpUrl: "intro/#searching",
|
||||
formData: { formKey: FORM_KEY, ayaType: window.$gz.type.Widget },
|
||||
formData: {
|
||||
formKey: FORM_KEY,
|
||||
ayaType: window.$gz.type.Widget,
|
||||
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY
|
||||
},
|
||||
menuItems: []
|
||||
};
|
||||
|
||||
@@ -699,8 +703,6 @@ function generateMenu(vm) {
|
||||
});
|
||||
}
|
||||
|
||||
//TODO: CUSTOMIZE OPTION IF BizAdminFull here
|
||||
|
||||
//STUB REPORTS
|
||||
|
||||
menuOptions.menuItems.push({
|
||||
|
||||
Reference in New Issue
Block a user