Skip to content

Commit d7d9b34

Browse files
committed
Notifications widget: support custom interval
If 'interval' attribute is passed in notification object, use that interval instead of the default. Conflicts: ui/scripts/ui/widgets/notifications.js
1 parent 003c625 commit d7d9b34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280
cloudStack.ui.event.call('addNotification', {
281281
section: notification.section,
282282
desc: notification.desc,
283-
interval: cloudStack.debug ? 0 : 5000,
283+
interval: notification.interval ? notification.interval : 5000,
284284
_custom: notification._custom,
285285
poll: function(args) {
286286
var complete = args.complete;

0 commit comments

Comments
 (0)