This commit is contained in:
2020-06-13 18:12:13 +00:00
parent bb8001bb3e
commit 1ddbeec447

View File

@@ -285,10 +285,16 @@ export default {
try {
//call fetch key on server
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) {
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) {
window.$gz.errorHandler.handleFormError(error, vm);
}