This commit is contained in:
@@ -285,10 +285,16 @@ export default {
|
|||||||
try {
|
try {
|
||||||
//call fetch key on server
|
//call fetch key on server
|
||||||
let r = await window.$gz.api.upsertEx("license");
|
let r = await window.$gz.api.upsertEx("license");
|
||||||
|
//r should just be a string response unless there is an error in which case it's an object
|
||||||
if (r.error) {
|
if (r.error) {
|
||||||
throw r;
|
throw r;
|
||||||
}
|
}
|
||||||
window.$gz.eventBus.$emit("notify-info", r.data);
|
|
||||||
|
if (r.startsWith("E1")) {
|
||||||
|
throw r;
|
||||||
|
}
|
||||||
|
//this should be the only place hit if everything goes well and key was fetched
|
||||||
|
window.$gz.eventBus.$emit("notify-success", r);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
window.$gz.errorHandler.handleFormError(error, vm);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user