aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/moon_gui/static/app/authentication
diff options
context:
space:
mode:
authorasteroide <thomas.duval@orange.com>2017-06-09 16:18:59 +0200
committerasteroide <thomas.duval@orange.com>2017-06-09 16:18:59 +0200
commit60bb98696ee93f979914d8e88ed4708f59fcff9c (patch)
treea404880ec261f95c69fa4a6a1edd50ef9a66d160 /moonv4/moon_gui/static/app/authentication
parent8039214d0caedfec5456bd8ee0898a1b9a55629a (diff)
Stable version
Change-Id: I70001bedbdf1823cb9e8dccd545800387777201b
Diffstat (limited to 'moonv4/moon_gui/static/app/authentication')
-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