This commit is contained in:
@@ -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
|
||||
) {
|
||||
|
||||
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user