1
0
Fork 0
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:
sauls8t 2018-12-05 13:44:10 +00:00
parent f44cda66e6
commit f05a6fc999
40 changed files with 4187 additions and 1031 deletions

View file

@ -9,7 +9,26 @@
//
// https://documize.com
import Notifier from '../../mixins/notifier';
import Controller from '@ember/controller';
export default Controller.extend({
export default Controller.extend(Notifier, {
actions: {
onSuccess() {
this.notifySuccess('Saved');
},
onInfo() {
this.notifyInfo('Working');
},
onWarn() {
this.notifyWarn('Failed to get');
},
onError() {
this.notifyError('Unable to save changes');
}
}
});

View file

@ -6,6 +6,10 @@
<p>Bring to the table win-win survival strategies to ensure proactive domination. At the end of the day, going forward, a new normal that has evolved from generation X is on the runway heading towards a streamlined cloud solution. User generated content in real-time will have multiple touchpoints for offshoring.</p>
{{/layout/master-sidebar}}
{{#layout/master-content}}
<button {{action 'onSuccess'}}>Success</button>
<button {{action 'onInfo'}}>Info</button>
<button {{action 'onWarn'}}>Warn</button>
<button {{action 'onError'}}>Error</button>
<p>Bring to the table win-win survival strategies to ensure proactive domination. At the end of the day, going forward, a new normal that has evolved from generation X is on the runway heading towards a streamlined cloud solution. User generated content in real-time will have multiple touchpoints for offshoring.</p>
<p>Bring to the table win-win survival strategies to ensure proactive domination. At the end of the day, going forward, a new normal that has evolved from generation X is on the runway heading towards a streamlined cloud solution. User generated content in real-time will have multiple touchpoints for offshoring.</p>
<p>Bring to the table win-win survival strategies to ensure proactive domination. At the end of the day, going forward, a new normal that has evolved from generation X is on the runway heading towards a streamlined cloud solution. User generated content in real-time will have multiple touchpoints for offshoring.</p>