This commit is contained in:
2019-12-03 20:47:04 +00:00
parent 7c497d6d8d
commit c7994c0d30
4 changed files with 20 additions and 13 deletions

View File

@@ -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":

View File

@@ -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: "*",

View File

@@ -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,

View File

@@ -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({