1
0
Fork 0
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:
McMatts 2018-05-31 18:18:50 +01:00
parent 983b84235c
commit b0daabb577

View file

@ -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);