This commit is contained in:
2020-12-22 15:21:11 +00:00
parent e0b70a49e3
commit 295cf4c0c4
4 changed files with 28 additions and 11 deletions

View File

@@ -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({