1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-28 01:29: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

File diff suppressed because one or more lines are too long

View file

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