1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 23:59:47 +02:00

Introduce new nofications framework

Integrated https://github.com/documize/iziToast and added 4 log levels.
This commit is contained in:
sauls8t 2018-12-05 13:44:10 +00:00
parent f44cda66e6
commit f05a6fc999
40 changed files with 4187 additions and 1031 deletions

View file

@ -23,8 +23,6 @@ export default Controller.extend(Notifier, {
},
onAction(page, meta) {
this.showWait();
let b = this.get('model.block');
b.set('title', page.get('title'));
b.set('body', page.get('body'));
@ -34,7 +32,7 @@ export default Controller.extend(Notifier, {
b.set('externalSource', meta.get('externalSource'));
this.get('sectionSvc').updateBlock(b).then(() => {
this.showDone();
this.notifySuccess('Saved');
this.get('router').transitionTo('folder.settings', {queryParams: {tab: 'blocks'}});
});
}