mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-724: Update connection parameters in menu after focus changes.
This commit is contained in:
@@ -452,8 +452,9 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
|
|||||||
// Update client state/behavior as visibility of the Guacamole menu changes
|
// Update client state/behavior as visibility of the Guacamole menu changes
|
||||||
$scope.$watch('menu.shown', function menuVisibilityChanged(menuShown, menuShownPreviousState) {
|
$scope.$watch('menu.shown', function menuVisibilityChanged(menuShown, menuShownPreviousState) {
|
||||||
|
|
||||||
// Update available connection parameters, if there is a focused
|
// Re-update available connection parameters, if there is a focused
|
||||||
// client
|
// client (parameter information may not have been available at the
|
||||||
|
// time focus changed)
|
||||||
if (menuShown)
|
if (menuShown)
|
||||||
$scope.menu.connectionParameters = $scope.focusedClient ?
|
$scope.menu.connectionParameters = $scope.focusedClient ?
|
||||||
ManagedClient.getArgumentModel($scope.focusedClient) : {};
|
ManagedClient.getArgumentModel($scope.focusedClient) : {};
|
||||||
@@ -474,6 +475,11 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
|
|||||||
if (oldFocusedClient)
|
if (oldFocusedClient)
|
||||||
$scope.applyParameterChanges(oldFocusedClient);
|
$scope.applyParameterChanges(oldFocusedClient);
|
||||||
|
|
||||||
|
// Update available connection parameters, if there is a focused
|
||||||
|
// client
|
||||||
|
$scope.menu.connectionParameters = newFocusedClient ?
|
||||||
|
ManagedClient.getArgumentModel(newFocusedClient) : {};
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Update page icon when thumbnail changes
|
// Update page icon when thumbnail changes
|
||||||
|
Reference in New Issue
Block a user