1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Moved wait stop calls on jt form so that they fire right before reloading state

This commit is contained in:
mabashian 2017-10-12 17:01:32 -04:00
parent f6bf0ad21f
commit 2cab6982c1
No known key found for this signature in database
GPG Key ID: 436B8D5EDC704CE3
2 changed files with 2 additions and 2 deletions

View File

@ -341,7 +341,6 @@
Rest.post(data) Rest.post(data)
.then(({data}) => { .then(({data}) => {
Wait('stop');
if (data.related && data.related.callback) { if (data.related && data.related.callback) {
Alert('Callback URL', Alert('Callback URL',
`Host callbacks are enabled for this template. The callback URL is: `Host callbacks are enabled for this template. The callback URL is:

View File

@ -496,7 +496,7 @@ export default
$scope.removeTemplateSaveSuccess(); $scope.removeTemplateSaveSuccess();
} }
$scope.removeTemplateSaveSuccess = $scope.$on('templateSaveSuccess', function(e, data) { $scope.removeTemplateSaveSuccess = $scope.$on('templateSaveSuccess', function(e, data) {
Wait('stop');
if (data.related && if (data.related &&
data.related.callback) { data.related.callback) {
Alert('Callback URL', Alert('Callback URL',
@ -606,6 +606,7 @@ export default
} }
$q.all(defers) $q.all(defers)
.then(function() { .then(function() {
Wait('stop');
saveCompleted(); saveCompleted();
}); });
}); });