mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 06:31:22 +00:00
GUACAMOLE-567: Warn user when tunnel enters "UNSTABLE" state.
This commit is contained in:
@@ -626,6 +626,18 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns whether the current connection has been flagged as unstable due
|
||||
* to an apparent network disruption.
|
||||
*
|
||||
* @returns {Boolean}
|
||||
* true if the current connection has been flagged as unstable, false
|
||||
* otherwise.
|
||||
*/
|
||||
$scope.isConnectionUnstable = function isConnectionUnstable() {
|
||||
return $scope.client && $scope.client.clientState.connectionState === ManagedClientState.ConnectionState.UNSTABLE;
|
||||
};
|
||||
|
||||
// Show status dialog when connection status changes
|
||||
$scope.$watch('client.clientState.connectionState', function clientStateChanged(connectionState) {
|
||||
|
||||
|
Reference in New Issue
Block a user