This commit is contained in:
2020-01-30 21:38:50 +00:00
parent ae59b59e30
commit 4f4bdcbfe6

View File

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