mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 20:30:46 -03:30
Merge pull request #2506 from jaredevantabor/notifications
updating notifications status after test notification
This commit is contained in:
commit
283b62e598
@ -164,11 +164,13 @@ export default
|
||||
.then(function (res) {
|
||||
Wait('stop');
|
||||
if(res && res.data && res.data.status && res.data.status === "successful"){
|
||||
scope.search(list.iterator);
|
||||
ngToast.success({
|
||||
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"){
|
||||
scope.search(list.iterator);
|
||||
ngToast.danger({
|
||||
content: `<i class="fa fa-exclamation-triangle Toast-successIcon"></i> <b>${name}:</b> Notification failed.`
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user