GUACAMOLE-265: Set page title when "name" instruction is received.

This commit is contained in:
Michael Jumper
2017-04-23 15:29:01 -07:00
parent 0c2bcdbd81
commit 0b2c63bd74
2 changed files with 20 additions and 5 deletions

View File

@@ -540,9 +540,9 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
});
// Update page title when client name is received
$scope.$watch('client.name', function clientNameChanged(name) {
$scope.page.title = name;
// Update page title when client title changes
$scope.$watch('client.title', function clientTitleChanged(title) {
$scope.page.title = title;
});
/**