This commit is contained in:
@@ -10,29 +10,27 @@ export default {
|
||||
//expects extra data (tid) to be one of { type: [AYATYPE], id: [RECORDID] }
|
||||
//or null which is what is called when asking to check if there is a direct openObject in store and open it
|
||||
|
||||
if (tid == null) {
|
||||
let op = vm.$store.state.openObject;
|
||||
//clear it out so it doesn't recur
|
||||
window.$gz.store.commit("clearOpenObject");
|
||||
if (op && op.type) {
|
||||
tid = op;
|
||||
} else {
|
||||
//log it in case we need to see it in tech support
|
||||
window.$gz.store.commit(
|
||||
"logItem",
|
||||
`Error: open object url was not valid, missing type or invalid type ${JSON.stringify(
|
||||
op
|
||||
)}`
|
||||
);
|
||||
return; //bail out, nothing to open here
|
||||
}
|
||||
}
|
||||
// if (tid == null) {
|
||||
// let op = vm.$store.state.openObject;
|
||||
// //clear it out so it doesn't recur
|
||||
// window.$gz.store.commit("clearOpenObject");
|
||||
// if (op && op.type) {
|
||||
// tid = op;
|
||||
// } else {
|
||||
// //log it in case we need to see it in tech support
|
||||
// window.$gz.store.commit(
|
||||
// "logItem",
|
||||
// `Error: open object url was not valid, missing type or invalid type ${JSON.stringify(
|
||||
// op
|
||||
// )}`
|
||||
// );
|
||||
// return; //bail out, nothing to open here
|
||||
// }
|
||||
// }
|
||||
|
||||
//NOTE: for new objects all edit pages assume record ID 0 means create rather than open
|
||||
|
||||
if (tid.type && tid.id != null) {
|
||||
console.log("tid", tid);
|
||||
console.log("ayatype", ayatype);
|
||||
switch (tid.type) {
|
||||
case ayatype.Widget:
|
||||
vm.$router.push({
|
||||
|
||||
Reference in New Issue
Block a user