mirror of
https://github.com/documize/community.git
synced 2025-07-22 14:49:42 +02:00
Handle Ember destoy state for notifications bus
Notifications should only bee active when Ember component is not destroyed.
This commit is contained in:
parent
983b84235c
commit
b0daabb577
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,8 @@ export default Component.extend({
|
|||
},
|
||||
|
||||
handleEvent(msg) {
|
||||
if (this.get('isDestroyed') || this.get('isDestroying')) return;
|
||||
|
||||
if (msg === 'wait') {
|
||||
this.set('showWait', true);
|
||||
this.set('showDone', false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue