mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 02:17:37 -02:30
Show "working" message before view refresh
This commit is contained in:
@@ -180,12 +180,14 @@ function ListTemplatesController(
|
|||||||
};
|
};
|
||||||
|
|
||||||
function refreshTemplates() {
|
function refreshTemplates() {
|
||||||
|
Wait('start');
|
||||||
let path = GetBasePath('unified_job_templates');
|
let path = GetBasePath('unified_job_templates');
|
||||||
qs.search(path, $state.params.template_search)
|
qs.search(path, $state.params.template_search)
|
||||||
.then(function(searchResponse) {
|
.then(function(searchResponse) {
|
||||||
vm.dataset = searchResponse.data;
|
vm.dataset = searchResponse.data;
|
||||||
vm.templates = vm.dataset.results;
|
vm.templates = vm.dataset.results;
|
||||||
});
|
})
|
||||||
|
.finally(() => Wait('stop'));
|
||||||
}
|
}
|
||||||
|
|
||||||
function createErrorHandler(path, action) {
|
function createErrorHandler(path, action) {
|
||||||
|
|||||||
Reference in New Issue
Block a user