mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1161: Set page title when login directive is shown.
This commit is contained in:
@@ -110,11 +110,15 @@ angular.module('index').controller('indexController', ['$scope', '$injector',
|
|||||||
|
|
||||||
// Display login screen if a whole new set of credentials is needed
|
// Display login screen if a whole new set of credentials is needed
|
||||||
$scope.$on('guacInvalidCredentials', function loginInvalid(event, parameters, expected) {
|
$scope.$on('guacInvalidCredentials', function loginInvalid(event, parameters, expected) {
|
||||||
|
$scope.page.title = 'APP.NAME';
|
||||||
|
$scope.page.bodyClassName = '';
|
||||||
$scope.expectedCredentials = expected;
|
$scope.expectedCredentials = expected;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Prompt for remaining credentials if provided credentials were not enough
|
// Prompt for remaining credentials if provided credentials were not enough
|
||||||
$scope.$on('guacInsufficientCredentials', function loginInsufficient(event, parameters, expected) {
|
$scope.$on('guacInsufficientCredentials', function loginInsufficient(event, parameters, expected) {
|
||||||
|
$scope.page.title = 'APP.NAME';
|
||||||
|
$scope.page.bodyClassName = '';
|
||||||
$scope.expectedCredentials = expected;
|
$scope.expectedCredentials = expected;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user