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;