GUAC-1193: Show the gear within the history table when search results are loading.
This commit is contained in:
1 parent
50e7c7075f
commit
18d8674c6f
2 files changed
+17
-4
No files matched your search
@@ -110,7 +110,20 @@ angular.module('settings').directive('guacSettingsConnectionHistory', [function
|
||||
return $scope.historyRecords !== null
|
||||
&& $scope.dateFormat !== null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether the search has completed but contains no history
|
||||
* records. This function will return false if there are history
|
||||
* records in the results OR if the search has not yet completed.
|
||||
*
|
||||
* @returns {Boolean}
|
||||
* true if the search results have been loaded but no history
|
||||
* records are present, false otherwise.
|
||||
*/
|
||||
$scope.isHistoryEmpty = function isHistoryEmpty() {
|
||||
return $scope.isLoaded() && $scope.historyRecords.length === 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* Query the API for the connection record history, filtered by
|
||||
* searchString, and ordered by order.
|
||||
|
||||
Reference in new issue
Block a user