mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 14:36:00 -03:30
Search helper now knows how to turn 'loading' message on at first page load.
This commit is contained in:
@@ -451,7 +451,7 @@ angular.module('SearchHelper', ['RestServices', 'Utilities', 'RefreshHelper'])
|
|||||||
*/
|
*/
|
||||||
scope.search = function (iterator, page, load, calcOnly) {
|
scope.search = function (iterator, page, load, calcOnly) {
|
||||||
page = page || null;
|
page = page || null;
|
||||||
load = (load) ? true : false;
|
load = (load || !scope.set || scope.set.length === 0) ? true : false;
|
||||||
calcOnly = (calcOnly) ? true : false;
|
calcOnly = (calcOnly) ? true : false;
|
||||||
if (load) {
|
if (load) {
|
||||||
scope[set] = []; //clear the list array to make sure 'Loading' is the only thing visible on the list
|
scope[set] = []; //clear the list array to make sure 'Loading' is the only thing visible on the list
|
||||||
|
|||||||
Reference in New Issue
Block a user