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
@@ -14,7 +14,7 @@
|
||||
{{#unless this.hideCancel}}
|
||||
{{#button action='cancel'
|
||||
disabled=this.cancelDisabled
|
||||
class=(concat 'btn btn-cancel ' (choose this.cancelClass 'btn-default'))
|
||||
class=(concat 'btn btn-cancel ' (choose this.cancelClass 'btn-secondary'))
|
||||
tagAttributes=(extend this.tagAttributes data-dismiss='modal')
|
||||
}}{{choose this.cancelLabel 'Cancel'}}{{/button}}
|
||||
{{/unless}}
|
||||
|
||||
@@ -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