mirror of https://github.com/apache/cloudstack.git
Add error handling to notifications widget
This commit is contained in:
parent
a68fba3a8d
commit
3ac7fb889b
|
|
@ -86,6 +86,13 @@
|
|||
if (args.message) {
|
||||
cloudStack.dialog.notice({ message: args.message });
|
||||
}
|
||||
|
||||
clearInterval(pollTimer);
|
||||
notifications.activeTasks.pop(pollTimer);
|
||||
notifications.cornerAlert({ message: 'ERROR: ' + $item.html() });
|
||||
$item.removeClass('pending').addClass('error');
|
||||
|
||||
if (additionalComplete) additionalComplete();
|
||||
}
|
||||
});
|
||||
}, args.interval);
|
||||
|
|
|
|||
Loading…
Reference in New Issue