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

Show notifications in footer

This commit is contained in:
Harvey Kandola 2018-07-11 08:44:12 -04:00
parent 4cfbd57871
commit 6617a5de45
2 changed files with 676 additions and 674 deletions

View file

@ -24,20 +24,22 @@ export default Component.extend({
init() {
this._super(...arguments);
this.eventBus.subscribe('notifyUser', this, 'handleEvent');
this.eventBus.subscribe('notifyUser', this, 'processNotification');
},
handleEvent(msg) {
processNotification(msg) {
if (this.get('isDestroyed') || this.get('isDestroying')) return;
if (msg === 'wait') {
this.set('showWait', true);
this.set('showMessage', false);
this.set('showDone', false);
}
if (msg === 'done') {
$('.progress-done').removeClass('zoomOut').addClass('zoomIn');
this.set('showWait', false);
this.set('showMessage', false);
this.set('showDone', true);
setTimeout(function() {