make wait stop happen after list refresh is called

This commit is contained in:
John Mitchell
2016-06-29 14:46:56 -04:00
parent f39c624b8e
commit 9c42ffa3f6

View File

@@ -56,10 +56,11 @@ export default
Rest.setUrl(url); Rest.setUrl(url);
Rest.post({"disassociate": true, "id": labelId}) Rest.post({"disassociate": true, "id": labelId})
.success(function () { .success(function () {
Wait('stop');
scope.search("job_template"); scope.search("job_template");
Wait('stop');
}) })
.error(function (data, status) { .error(function (data, status) {
Wait('stop');
ProcessErrors(scope, data, status, null, { hdr: 'Error!', ProcessErrors(scope, data, status, null, { hdr: 'Error!',
msg: 'Could not disacssociate label from JT. Call to ' + url + ' failed. DELETE returned status: ' + status }); msg: 'Could not disacssociate label from JT. Call to ' + url + ' failed. DELETE returned status: ' + status });
}); });