mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 14:41:21 +00:00
GUAC-1138: Move filtering logic into own directive.
This commit is contained in:
@@ -29,7 +29,6 @@ angular.module('manage').controller('manageSessionsController', ['$scope', '$inj
|
||||
// Required types
|
||||
var ActiveConnectionWrapper = $injector.get('ActiveConnectionWrapper');
|
||||
var ConnectionGroup = $injector.get('ConnectionGroup');
|
||||
var FilterPattern = $injector.get('FilterPattern');
|
||||
var StableSort = $injector.get('StableSort');
|
||||
|
||||
// Required services
|
||||
@@ -55,20 +54,6 @@ angular.module('manage').controller('manageSessionsController', ['$scope', '$inj
|
||||
*/
|
||||
$scope.wrappers = null;
|
||||
|
||||
/**
|
||||
* The filter search string to use to restrict the displayed active sessions
|
||||
*
|
||||
* @type String
|
||||
*/
|
||||
$scope.filterSearchString = null;
|
||||
|
||||
/**
|
||||
* The pattern object to use when filtering active sessions.
|
||||
*
|
||||
* @type FilterPattern
|
||||
*/
|
||||
$scope.filterPattern = new FilterPattern();
|
||||
|
||||
/**
|
||||
* StableSort instance which maintains the sort order of the visible
|
||||
* connection wrappers.
|
||||
@@ -361,9 +346,4 @@ angular.module('manage').controller('manageSessionsController', ['$scope', '$inj
|
||||
|
||||
};
|
||||
|
||||
// Recompile the filter pattern when changed
|
||||
$scope.$watch('filterSearchString', function recompilePredicate(searchString) {
|
||||
$scope.filterPattern.compile(searchString);
|
||||
});
|
||||
|
||||
}]);
|
||||
|
Reference in New Issue
Block a user