This commit is contained in:
2020-03-06 20:08:50 +00:00
parent 7318a33350
commit 17bf519cb0
79 changed files with 331 additions and 309 deletions

View File

@@ -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";
}