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:
parent
f6bf0ad21f
commit
2cab6982c1
@ -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:
|
||||||
|
@ -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();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user