mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 13:36:02 -03:30
updating notifications status after test notification
This commit is contained in:
@@ -164,11 +164,13 @@ export default
|
|||||||
.then(function (res) {
|
.then(function (res) {
|
||||||
Wait('stop');
|
Wait('stop');
|
||||||
if(res && res.data && res.data.status && res.data.status === "successful"){
|
if(res && res.data && res.data.status && res.data.status === "successful"){
|
||||||
|
scope.search(list.iterator);
|
||||||
ngToast.success({
|
ngToast.success({
|
||||||
content: `<i class="fa fa-check-circle Toast-successIcon"></i> <b>${name}:</b> Notification sent.`
|
content: `<i class="fa fa-check-circle Toast-successIcon"></i> <b>${name}:</b> Notification sent.`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if(res && res.data && res.data.status && res.data.status === "failed"){
|
else if(res && res.data && res.data.status && res.data.status === "failed"){
|
||||||
|
scope.search(list.iterator);
|
||||||
ngToast.danger({
|
ngToast.danger({
|
||||||
content: `<i class="fa fa-exclamation-triangle Toast-successIcon"></i> <b>${name}:</b> Notification failed.`
|
content: `<i class="fa fa-exclamation-triangle Toast-successIcon"></i> <b>${name}:</b> Notification failed.`
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user