diff --git a/awx/ui/client/features/templates/templatesList.controller.js b/awx/ui/client/features/templates/templatesList.controller.js index f2058d0376..ec964e7778 100644 --- a/awx/ui/client/features/templates/templatesList.controller.js +++ b/awx/ui/client/features/templates/templatesList.controller.js @@ -180,12 +180,14 @@ function ListTemplatesController( }; function refreshTemplates() { + Wait('start'); let path = GetBasePath('unified_job_templates'); qs.search(path, $state.params.template_search) .then(function(searchResponse) { vm.dataset = searchResponse.data; vm.templates = vm.dataset.results; - }); + }) + .finally(() => Wait('stop')); } function createErrorHandler(path, action) {