GUAC-1138: Remove wrapper-specific filter code. Make FilterPattern, etc. generic.

This commit is contained in:
Michael Jumper
2015-03-27 13:37:39 -07:00
parent 97ba33700c
commit 0e01cfc4fb
4 changed files with 57 additions and 18 deletions

View File

@@ -67,6 +67,17 @@ angular.module('manage').controller('manageSessionsController', ['$scope', '$inj
'name'
]);
/**
* Array of all wrapper properties that are filterable.
*
* @type String[]
*/
$scope.filteredWrapperProperties = [
'activeConnection.username',
'activeConnection.remoteHost',
'name'
];
/**
* All active connections, if known, or null if active connections have not
* yet been loaded.

View File

@@ -38,7 +38,8 @@ THE SOFTWARE.
<!-- Session filter -->
<guac-filter filtered-items="filteredWrappers" items="wrappers"
placeholder="'MANAGE_SESSION.FIELD_PLACEHOLDER_FILTER' | translate"></guac-filter>
placeholder="'MANAGE_SESSION.FIELD_PLACEHOLDER_FILTER' | translate"
properties="filteredWrapperProperties"></guac-filter>
<!-- List of current user sessions -->
<table class="sorted session-list">