From d961b93319bc83461cd5f30b9ce9ceb2738c09b6 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 22 Jul 2020 23:43:42 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 5 ++++- ayanova/src/api/open-object-handler.js | 12 ++++++++++-- ayanova/src/views/login.vue | 1 + 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index ac72958c..44433c0e 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -12,9 +12,12 @@ ____________ ## CURRENT STAGE: +todo: open object link url not working at client, asks for login but then doesn't navigate like it should +todo: test notification in alternate language todo: subscription form should autofill in user's personal email address when they pick a new email subscription but still let them change it todo: subscription form still not completed, needs to be coded for when to show tags (for example) and other stuff - +todo: Localize this message or get rid of it, it's annoying and possibly useless + "Error checking for notifications, see about->log for details; log out and back in again to reset " todo: Back end notification related settings GlobalOpsNotificationSettings (copy from backup settings) SMTP creds, return address diff --git a/ayanova/src/api/open-object-handler.js b/ayanova/src/api/open-object-handler.js index 04b25582..21ea103a 100644 --- a/ayanova/src/api/open-object-handler.js +++ b/ayanova/src/api/open-object-handler.js @@ -12,10 +12,18 @@ export default { 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; - window.$gz.store.commit("clearOpenObject"); - } else return; //bail out, nothing to open here + } 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 ${op}` + ); + return; //bail out, nothing to open here + } } //NOTE: for new objects all edit pages assume record ID 0 means create rather than open diff --git a/ayanova/src/views/login.vue b/ayanova/src/views/login.vue index 28357e8c..b6f07674 100644 --- a/ayanova/src/views/login.vue +++ b/ayanova/src/views/login.vue @@ -306,6 +306,7 @@ export default { ); })(); } + if (vm.$store.state.openObject != null) { window.$gz.eventBus.$emit("openobject", null); } else {