This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user