aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/moon_gui/static/app/authentication/authentication.controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'moonv4/moon_gui/static/app/authentication/authentication.controller.js')
-rw-r--r--moonv4/moon_gui/static/app/authentication/authentication.controller.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/moonv4/moon_gui/static/app/authentication/authentication.controller.js b/moonv4/moon_gui/static/app/authentication/authentication.controller.js
index d3510fed..ce38bc5f 100644
--- a/moonv4/moon_gui/static/app/authentication/authentication.controller.js
+++ b/moonv4/moon_gui/static/app/authentication/authentication.controller.js
@@ -37,18 +37,22 @@
}
function loginSuccess() {
+
$translate('moon.login.success').then( function(translatedValue) {
alertService.alertSuccess(translatedValue);
$state.go('moon.dashboard');
vm.loading = false;
});
+
}
function loginError(reason) {
+
$translate('moon.login.error', { errorCode: reason.status }).then( function(translatedValue) {
alertService.alertError(translatedValue);
vm.loading = false;
});
+
}
}
})(); \ No newline at end of file