mirror of
https://github.com/documize/community.git
synced 2025-07-28 09:39:42 +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() {
|
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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue