mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +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
|
@ -40,10 +40,8 @@ export default Component.extend(Notifier, Modals, {
|
|||
|
||||
actions: {
|
||||
saveLicense() {
|
||||
this.showWait();
|
||||
|
||||
this.get('global').setLicense(this.get('license')).then(() => {
|
||||
this.showDone();
|
||||
this.notifySuccess('Saved');
|
||||
window.location.reload();
|
||||
});
|
||||
},
|
||||
|
@ -57,7 +55,7 @@ export default Component.extend(Notifier, Modals, {
|
|||
let comment = this.get('comment');
|
||||
|
||||
this.get('global').deactivate(comment).then(() => {
|
||||
this.showDone();
|
||||
this.notifySuccess('Saved');
|
||||
this.modalOpen("#deactivation-confirmation-modal", {"show": true});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue