Merge pull request #2615 from kialam/fix/1444-fix-auto-close-modal

Fix prompt modal closing prematurely on JT list page
This commit is contained in:
kialam
2018-07-20 11:47:00 -04:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -181,12 +181,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) {