This commit is contained in:
@@ -10,10 +10,13 @@ export default {
|
||||
// called from App.vue
|
||||
handleOpenObjectClick(vm, tid) {
|
||||
//expects extra data (tid) to be one of { type: [AYATYPE], id: [RECORDID] }
|
||||
|
||||
//console.log("open-object-handler::handleOpenObjectClick, tid:", tid);
|
||||
//NOTE: for new objects all edit pages assume record ID 0 means create rather than open
|
||||
|
||||
if (tid.type && tid.id != null) {
|
||||
//if these come from route parameters they may well be strings
|
||||
tid.type = Number.parseInt(tid.type, 10);
|
||||
tid.id = Number.parseInt(tid.id, 10);
|
||||
switch (tid.type) {
|
||||
case ayatype.Memo:
|
||||
vm.$router.push({
|
||||
|
||||
Reference in New Issue
Block a user