From eabdda92b373b6b5d8134d396d04121cc314aa13 Mon Sep 17 00:00:00 2001 From: kialam Date: Thu, 19 Jul 2018 14:29:30 -0400 Subject: [PATCH] Show "working" message before view refresh --- awx/ui/client/features/templates/templatesList.controller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {