diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 6f237aca..1c6ef35a 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -4,9 +4,6 @@ PRIORITY - ALWAYS Lowest level stuff first, i.e. TODO at server, api route chang =-=-=-=- -todo: if dbid in url query parameter of contact form on server it should include that in the message - also something needs to be fixed there, it's been in notes forever - todo: move contact url from evaluate form to gzapi and then consider places to put more contact tech support buttons, perhaps in About form? diff --git a/ayanova/src/api/gzmenu.js b/ayanova/src/api/gzmenu.js index 0d4c034a..4df4f2a7 100644 --- a/ayanova/src/api/gzmenu.js +++ b/ayanova/src/api/gzmenu.js @@ -4,6 +4,18 @@ // Menu utils and handlers // export default { + /////////////////////////////////////////// + // TECH SUPPORT / CONTACT FORUM URL + // + contactSupportUrl() { + let dbId = encodeURIComponent( + window.$gz.store.state.globalSettings.serverDbId + ); + let company = encodeURIComponent( + window.$gz.store.state.globalSettings.company + ); + return `https://contact.ayanova.com/contact?dbid=${dbId}&company=${company}`; + }, /////////////////////////////// // CHANGE HANDLER // diff --git a/ayanova/src/views/ay-evaluate.vue b/ayanova/src/views/ay-evaluate.vue index 5f19cb4f..7c2c302a 100644 --- a/ayanova/src/views/ay-evaluate.vue +++ b/ayanova/src/views/ay-evaluate.vue @@ -145,16 +145,7 @@ export default { }); }, supportLink() { - console.log(window.$gz.store.state.globalSettings); - let dbId = encodeURIComponent( - window.$gz.store.state.globalSettings.serverDbId - ); - let company = encodeURIComponent( - window.$gz.store.state.globalSettings.company - ); - return `https://contact.ayanova.com/contact?dbid=${dbId}&company=${company}`; - // "https://contact.ayanova.com/contact?dbid=" + - // window.$gz.store.state.globalSettings.serverDbId + return window.$gz.menu.contactSupportUrl(); }, async generate() { let vm = this;