From fa3a0fc1062714216c49dc401b0aaf057e006487 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 13 Jun 2020 13:58:08 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 5 +++++ ayanova/src/api/gzdialog.js | 4 ++-- ayanova/src/views/adm-license.vue | 14 +++++++++++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 13b7fa26..c1ed9920 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -107,6 +107,11 @@ todo: License testing (I know it's working when these things all pass) ################################# + + + + +todo: about form show real dbid not license dbid or both I guess todo: server error red box messages have \r\n characters in them todo: add system to reset password if lost todo: Auth is directly fetching, re-route through gzapi instead diff --git a/ayanova/src/api/gzdialog.js b/ayanova/src/api/gzdialog.js index 9c266209..278e5dfa 100644 --- a/ayanova/src/api/gzdialog.js +++ b/ayanova/src/api/gzdialog.js @@ -53,7 +53,7 @@ export default { /////////// //INFO - window.$gz.eventBus.$on("notify-info", function handleNotifyWarn( + window.$gz.eventBus.$on("notify-info", function handleNotifyInfo( msg, helpUrl ) { @@ -68,7 +68,7 @@ export default { /////////// //SUCCESS - window.$gz.eventBus.$on("notify-success", function handleNotifyWarn( + window.$gz.eventBus.$on("notify-success", function handleNotifySuccess( msg, helpUrl ) { diff --git a/ayanova/src/views/adm-license.vue b/ayanova/src/views/adm-license.vue index 62742548..12848a3a 100644 --- a/ayanova/src/views/adm-license.vue +++ b/ayanova/src/views/adm-license.vue @@ -273,12 +273,24 @@ export default { throw r; } - console.log(r); + window.$gz.eventBus.$emit("notify-success", r.data); + //then another message box saying watch your email to verify } catch (error) { window.$gz.errorHandler.handleFormError(error, vm); } }, + async fetchKey() { + let vm = this; + try { + //call fetch key on server + let r = await window.$gz.api.upsertEx("license"); + + window.$gz.eventBus.$emit("notify-info", r.data); + } catch (error) { + window.$gz.errorHandler.handleFormError(error, vm); + } + }, translation() { return window.$gz.translation; },