Skip to content

Commit bb9f772

Browse files
authored
GUACAMOLE-2212: Merge reload translations on login.
2 parents 88a4c60 + 1e3d87e commit bb9f772

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • guacamole/src/main/frontend/src/app/login/directives

guacamole/src/main/frontend/src/app/login/directives/login.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ angular.module('login').directive('guacLogin', [function guacLogin() {
6969
var $location = $injector.get('$location');
7070
var $rootScope = $injector.get('$rootScope');
7171
var $route = $injector.get('$route');
72+
var $translate = $injector.get('$translate');
7273
var authenticationService = $injector.get('authenticationService');
7374
var requestService = $injector.get('requestService');
7475

@@ -223,8 +224,10 @@ angular.module('login').directive('guacLogin', [function guacLogin() {
223224

224225
// Retry route upon success (entered values will be cleared only
225226
// after route change has succeeded as this can take time)
227+
// and refresh the translation
226228
$rootScope.$on('guacLogin', function loginSuccessful() {
227229
$route.reload();
230+
$translate.refresh();
228231
});
229232

230233
// Reset upon failure

0 commit comments

Comments
 (0)