Skip to content

Commit 4c05ada

Browse files
committed
Error appearance for notifications corner alert
1 parent 03d1f40 commit 4c05ada

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎ui/css/cloudstack3.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,10 @@ div.notification.corner-alert div.title span {
945945
font-weight: bold;
946946
}
947947

948+
div.notification.corner-alert.error div.title span {
949+
background: url(../images/icons.png) no-repeat -4px -190px;
950+
}
951+
948952
div.notification.corner-alert div.message span {
949953
position: relative;
950954
padding-top: 6px;

‎ui/scripts/ui/widgets/notifications.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
)
2626
);
2727

28+
if (options.error) {
29+
$cornerAlert.addClass('error');
30+
}
31+
2832
return $cornerAlert
2933
.css({
3034
position: 'absolute',
@@ -95,7 +99,7 @@
9599
clearInterval(pollTimer);
96100
notifications.activeTasks.pop(pollTimer);
97101
notifications.cornerAlert({ message: $item.html() }, {
98-
error: _l('ERROR')
102+
error: _l('label.error')
99103
});
100104
$item.removeClass('pending').addClass('error');
101105

0 commit comments

Comments
 (0)