This commit is contained in:
@@ -54,7 +54,7 @@ function handleError(action, error, route, reject) {
|
||||
window.$gz.store.commit("logItem", "Not authorized, redirecting to HOME");
|
||||
window.$gz.eventBus.$emit(
|
||||
"notify-warning",
|
||||
window.$gz.locale.get("ErrorUserNotAuthorized")
|
||||
window.$gz.translation.get("ErrorUserNotAuthorized")
|
||||
);
|
||||
router.push(window.$gz.store.state.homePage);
|
||||
return reject("[ErrorUserNotAuthorized]");
|
||||
@@ -68,7 +68,7 @@ function handleError(action, error, route, reject) {
|
||||
);
|
||||
window.$gz.eventBus.$emit(
|
||||
"notify-error",
|
||||
window.$gz.locale.get("ErrorUserNotAuthenticated")
|
||||
window.$gz.translation.get("ErrorUserNotAuthenticated")
|
||||
);
|
||||
auth.logout();
|
||||
router.push("/login");
|
||||
@@ -86,9 +86,9 @@ function handleError(action, error, route, reject) {
|
||||
window.$gz.store.commit("logItem", "Network error");
|
||||
window.$gz.eventBus.$emit(
|
||||
"notify-error",
|
||||
window.$gz.locale.get("ErrorServerUnresponsive")
|
||||
window.$gz.translation.get("ErrorServerUnresponsive")
|
||||
);
|
||||
//note: using locale key in square brackets
|
||||
//note: using translation key in square brackets
|
||||
return reject("[ErrorServerUnresponsive]");
|
||||
//throw "Error: unable to contact server";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user