From 4f4bdcbfe61702769f533696e600f77df35bd814 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 30 Jan 2020 21:38:50 +0000 Subject: [PATCH] --- ayanova/src/api/open-object-handler.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ayanova/src/api/open-object-handler.js b/ayanova/src/api/open-object-handler.js index cbd71660..5f6a86f2 100644 --- a/ayanova/src/api/open-object-handler.js +++ b/ayanova/src/api/open-object-handler.js @@ -1,5 +1,5 @@ /* xxxeslint-disable */ - +import ayatype from "./ayatype"; export default { /////////////////////////////// // APP (GLOBAL) openobject CLICK HANDLER @@ -8,13 +8,14 @@ export default { // called from App.vue handleOpenObjectClick(vm, tid) { //expects extra data (tid) to be { type: [AYATYPE], id: [RECORDID] } + //NOTE: for new objects all edit pages assume record ID 0 means create rather than open if (tid.type && tid.id) { switch (tid.type) { - case "customize": - vm.$router.push({ - name: "ay-customize", - params: { formCustomTemplateKey: item.data } + case ayatype.Widget: + this.$router.push({ + name: "inventory-widget-edit", + params: { id: item.id } }); break;