This commit is contained in:
@@ -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: server error red box messages have \r\n characters in them
|
||||||
todo: add system to reset password if lost
|
todo: add system to reset password if lost
|
||||||
todo: Auth is directly fetching, re-route through gzapi instead
|
todo: Auth is directly fetching, re-route through gzapi instead
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ export default {
|
|||||||
|
|
||||||
///////////
|
///////////
|
||||||
//INFO
|
//INFO
|
||||||
window.$gz.eventBus.$on("notify-info", function handleNotifyWarn(
|
window.$gz.eventBus.$on("notify-info", function handleNotifyInfo(
|
||||||
msg,
|
msg,
|
||||||
helpUrl
|
helpUrl
|
||||||
) {
|
) {
|
||||||
@@ -68,7 +68,7 @@ export default {
|
|||||||
|
|
||||||
///////////
|
///////////
|
||||||
//SUCCESS
|
//SUCCESS
|
||||||
window.$gz.eventBus.$on("notify-success", function handleNotifyWarn(
|
window.$gz.eventBus.$on("notify-success", function handleNotifySuccess(
|
||||||
msg,
|
msg,
|
||||||
helpUrl
|
helpUrl
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -273,12 +273,24 @@ export default {
|
|||||||
throw r;
|
throw r;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(r);
|
window.$gz.eventBus.$emit("notify-success", r.data);
|
||||||
|
|
||||||
//then another message box saying watch your email to verify
|
//then another message box saying watch your email to verify
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
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() {
|
translation() {
|
||||||
return window.$gz.translation;
|
return window.$gz.translation;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user