From 9c42ffa3f61f9d516710c05f9ca81549a5a246e8 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Wed, 29 Jun 2016 14:46:56 -0400 Subject: [PATCH] make wait stop happen after list refresh is called --- awx/ui/client/src/job-templates/labels/labelsList.directive.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/ui/client/src/job-templates/labels/labelsList.directive.js b/awx/ui/client/src/job-templates/labels/labelsList.directive.js index 7e48f37dd9..d9ef63b237 100644 --- a/awx/ui/client/src/job-templates/labels/labelsList.directive.js +++ b/awx/ui/client/src/job-templates/labels/labelsList.directive.js @@ -56,10 +56,11 @@ export default Rest.setUrl(url); Rest.post({"disassociate": true, "id": labelId}) .success(function () { - Wait('stop'); scope.search("job_template"); + Wait('stop'); }) .error(function (data, status) { + Wait('stop'); ProcessErrors(scope, data, status, null, { hdr: 'Error!', msg: 'Could not disacssociate label from JT. Call to ' + url + ' failed. DELETE returned status: ' + status }); });