mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
Refresh button on jobs and projects tab now responds with a spinner. Before nothing happened and you were not really sure if the data actually refreshed. This is a result of removing the little spinner in the fitler widget.
This commit is contained in:
parent
aef534f080
commit
2f90ce511f
@ -13,7 +13,7 @@
|
||||
function JobsListCtrl ($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, JobList,
|
||||
GenerateList, LoadBreadCrumbs, Prompt, SearchInit, PaginateInit, ReturnToCaller,
|
||||
ClearScope, ProcessErrors, GetBasePath, LookUpInit, SubmitJob, FormatDate, Refresh,
|
||||
JobStatusToolTip, Empty)
|
||||
JobStatusToolTip, Empty, Wait)
|
||||
{
|
||||
ClearScope('htmlTemplate');
|
||||
var list = JobList;
|
||||
@ -88,7 +88,7 @@ function JobsListCtrl ($scope, $rootScope, $location, $log, $routeParams, Rest,
|
||||
LoadBreadCrumbs();
|
||||
|
||||
scope.refresh = function() {
|
||||
scope['jobSearchSpin'] = true;
|
||||
Wait('start');
|
||||
scope['jobLoading'] = false;
|
||||
Refresh({ scope: scope, set: 'jobs', iterator: 'job', url: scope['current_url'] });
|
||||
}
|
||||
@ -175,7 +175,7 @@ function JobsListCtrl ($scope, $rootScope, $location, $log, $routeParams, Rest,
|
||||
JobsListCtrl.$inject = [ '$scope', '$rootScope', '$location', '$log', '$routeParams', 'Rest', 'Alert', 'JobList',
|
||||
'GenerateList', 'LoadBreadCrumbs', 'Prompt', 'SearchInit', 'PaginateInit', 'ReturnToCaller', 'ClearScope',
|
||||
'ProcessErrors','GetBasePath', 'LookUpInit', 'SubmitJob', 'FormatDate', 'Refresh', 'JobStatusToolTip',
|
||||
'Empty'
|
||||
'Empty', 'Wait'
|
||||
];
|
||||
|
||||
|
||||
|
||||
@ -208,7 +208,7 @@ function ProjectsList ($scope, $rootScope, $location, $log, $routeParams, Rest,
|
||||
}
|
||||
|
||||
scope.refresh = function() {
|
||||
scope['projectSearchSpin'] = true;
|
||||
Wait('start');
|
||||
scope['projectLoading'] = false;
|
||||
Refresh({ scope: scope, set: 'projects', iterator: 'project', url: scope['current_url'] });
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user