Minor improvements on notifications mechanism
This commit is contained in:
1 parent
4efa774cd3
commit
7641d6e9af
4 files changed
+9
-5
No files matched your search
@@ -104,4 +104,9 @@ Notifications.show = ({ template, data, text, style, timeout=5000, promise }) =>
|
||||
return notificationPromise;
|
||||
};
|
||||
|
||||
Notifications.info = o => Notifications.show(Object.assign({}, o, { style: 'info' }));
|
||||
Notifications.success = o => Notifications.show(Object.assign({}, o, { style: 'success' }));
|
||||
Notifications.warning = o => Notifications.show(Object.assign({}, o, { style: 'warning' }));
|
||||
Notifications.danger = o => Notifications.show(Object.assign({}, o, { style: 'danger' }));
|
||||
|
||||
OHIF.ui.notifications = Notifications;
|
||||
Reference in new issue
Block a user