mirror of
https://github.com/documize/community.git
synced 2025-08-05 05:25:27 +02:00
Introduce new nofications framework
Integrated https://github.com/documize/iziToast and added 4 log levels.
This commit is contained in:
parent
f44cda66e6
commit
f05a6fc999
40 changed files with 4187 additions and 1031 deletions
|
@ -30,7 +30,7 @@ export default Service.extend({
|
|||
setTimeout(interv, wait);
|
||||
},
|
||||
|
||||
showNotification(msg) {
|
||||
this.get('eventBus').publish('notifyUser', msg);
|
||||
}
|
||||
// showNotification(msg) {
|
||||
// this.get('eventBus').publish('notifyUser', msg);
|
||||
// }
|
||||
});
|
||||
|
|
|
@ -147,7 +147,7 @@ export default Service.extend(Notifier, {
|
|||
document.execCommand('copy');
|
||||
document.body.removeChild(el);
|
||||
|
||||
this.showNotification('Copied location to clipboard');
|
||||
this.notifyInfo('Copied location to clipboard');
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue