This commit is contained in:
@@ -7,7 +7,17 @@ export default {
|
||||
// Deal with a request to open an object (from main datatables mainly)
|
||||
// called from App.vue
|
||||
handleOpenObjectClick(vm, tid) {
|
||||
//expects extra data (tid) to be { type: [AYATYPE], id: [RECORDID] }
|
||||
//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;
|
||||
if (op && op.type) {
|
||||
tid = op;
|
||||
window.$gz.store.commit("clearOpenObject");
|
||||
} else 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) {
|
||||
|
||||
Reference in New Issue
Block a user