mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 21:51:23 +00:00
GUACAMOLE-724: Clear out sharing profiles from previous client if focus is changing to a client lacking a UUID.
This commit is contained in:
@@ -462,8 +462,10 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
|
|||||||
$scope.$watch('focusedClient.tunnel.uuid', function retrieveSharingProfiles(uuid) {
|
$scope.$watch('focusedClient.tunnel.uuid', function retrieveSharingProfiles(uuid) {
|
||||||
|
|
||||||
// Only pull sharing profiles if tunnel UUID is actually available
|
// Only pull sharing profiles if tunnel UUID is actually available
|
||||||
if (!uuid)
|
if (!uuid) {
|
||||||
|
$scope.sharingProfiles = {};
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Pull sharing profiles for the current connection
|
// Pull sharing profiles for the current connection
|
||||||
tunnelService.getSharingProfiles(uuid)
|
tunnelService.getSharingProfiles(uuid)
|
||||||
|
Reference in New Issue
Block a user