From c7994c0d3080a3dd633722fbe0fa36337c051011 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 3 Dec 2019 20:47:04 +0000 Subject: [PATCH] --- ayanova/src/api/gzmenu.js | 4 ++-- ayanova/src/router.js | 10 +++++++--- ayanova/src/views/customize.vue | 11 ++++++----- ayanova/src/views/inventory-widget-edit.vue | 8 +++++--- 4 files changed, 20 insertions(+), 13 deletions(-) diff --git a/ayanova/src/api/gzmenu.js b/ayanova/src/api/gzmenu.js index 9b74bc78..94036efd 100644 --- a/ayanova/src/api/gzmenu.js +++ b/ayanova/src/api/gzmenu.js @@ -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": diff --git a/ayanova/src/router.js b/ayanova/src/router.js index b64c7159..f0c65083 100644 --- a/ayanova/src/router.js +++ b/ayanova/src/router.js @@ -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: "*", diff --git a/ayanova/src/views/customize.vue b/ayanova/src/views/customize.vue index 9e9c72a7..2350842f 100644 --- a/ayanova/src/views/customize.vue +++ b/ayanova/src/views/customize.vue @@ -1,14 +1,15 @@