From 60bb98696ee93f979914d8e88ed4708f59fcff9c Mon Sep 17 00:00:00 2001 From: asteroide Date: Fri, 9 Jun 2017 16:18:59 +0200 Subject: Stable version Change-Id: I70001bedbdf1823cb9e8dccd545800387777201b --- .../moon_gui/static/app/authentication/authentication.controller.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'moonv4/moon_gui/static/app/authentication') 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 -- cgit 1.2.3-korg