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