This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/* xxxeslint-disable */
|
/* xxxeslint-disable */
|
||||||
|
import ayatype from "./ayatype";
|
||||||
export default {
|
export default {
|
||||||
///////////////////////////////
|
///////////////////////////////
|
||||||
// APP (GLOBAL) openobject CLICK HANDLER
|
// APP (GLOBAL) openobject CLICK HANDLER
|
||||||
@@ -8,13 +8,14 @@ export default {
|
|||||||
// called from App.vue
|
// called from App.vue
|
||||||
handleOpenObjectClick(vm, tid) {
|
handleOpenObjectClick(vm, tid) {
|
||||||
//expects extra data (tid) to be { type: [AYATYPE], id: [RECORDID] }
|
//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) {
|
if (tid.type && tid.id) {
|
||||||
switch (tid.type) {
|
switch (tid.type) {
|
||||||
case "customize":
|
case ayatype.Widget:
|
||||||
vm.$router.push({
|
this.$router.push({
|
||||||
name: "ay-customize",
|
name: "inventory-widget-edit",
|
||||||
params: { formCustomTemplateKey: item.data }
|
params: { id: item.id }
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user