mirror of
https://github.com/documize/community.git
synced 2025-07-24 23:59:47 +02:00
Show notifications in footer
This commit is contained in:
parent
4cfbd57871
commit
6617a5de45
2 changed files with 676 additions and 674 deletions
1344
embed/bindata.go
1344
embed/bindata.go
File diff suppressed because one or more lines are too long
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue