This commit is contained in:
2020-06-13 13:58:08 +00:00
parent 2dbd28eb05
commit fa3a0fc106
3 changed files with 20 additions and 3 deletions

View File

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

View File

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

View File

@@ -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;
},