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({ vm.appBar.menuItems.push({
title: window.$gz.locale.get("Customize"), title: window.$gz.locale.get("Customize"),
icon: "sliders-h", icon: "sliders-h",
data: ctx.formData.ayaType, data: ctx.formData.formCustomTemplateKey,
key: "app:customize" key: "app:customize"
}); });
} }
@@ -151,7 +151,7 @@ export default {
case "customize": case "customize":
vm.$router.push({ vm.$router.push({
name: "customize", name: "customize",
params: { ayatype: item.data } params: { formCustomTemplateKey: item.data }
}); });
break; break;
case "nav": case "nav":

View File

@@ -135,13 +135,17 @@ export default new Router({
path: "/inventory/widget/edit/:id", path: "/inventory/widget/edit/:id",
name: "inventory-widget-edit", name: "inventory-widget-edit",
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", path: "/customize/:formCustomTemplateKey",
name: "customize", name: "customize",
component: () => component: () =>
import(/* webpackChunkName: "inventory-widget-edit" */ "./views/customize.vue") import(
/* webpackChunkName: "inventory-widget-edit" */ "./views/customize.vue"
)
}, },
{ {
path: "*", path: "*",

View File

@@ -1,14 +1,15 @@
<template> <template>
<UnderConstruction /> <h1>CUSTOMIZE: {{ formCustomTemplateKey }}</h1>
</template> </template>
<script> <script>
import UnderConstruction from "../components/underconstruction.vue";
export default { export default {
components: { data() {
UnderConstruction return {
formCustomTemplateKey: this.$route.params.formCustomTemplateKey
};
}, },
components: {},
beforeCreate() { beforeCreate() {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,

View File

@@ -666,7 +666,11 @@ function generateMenu(vm) {
icon: "fa-splotch", icon: "fa-splotch",
title: window.$gz.locale.get("Widget"), title: window.$gz.locale.get("Widget"),
helpUrl: "intro/#searching", 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: [] menuItems: []
}; };
@@ -699,8 +703,6 @@ function generateMenu(vm) {
}); });
} }
//TODO: CUSTOMIZE OPTION IF BizAdminFull here
//STUB REPORTS //STUB REPORTS
menuOptions.menuItems.push({ menuOptions.menuItems.push({