Merge remote-tracking branch 'origin/fix/application-group-improvments' into 004
This commit is contained in:
@@ -50,9 +50,10 @@ export class ApplicationGroup {
|
||||
}
|
||||
if (this.applications.length === 0) {
|
||||
this.createDefaultApplication();
|
||||
}
|
||||
} else {
|
||||
this.notifyObserversOfAppChange();
|
||||
}
|
||||
}
|
||||
|
||||
private createNewApplication() {
|
||||
const scope = this.$rootScope.$new(true);
|
||||
@@ -121,6 +122,11 @@ export class ApplicationGroup {
|
||||
if (this.application) {
|
||||
callback();
|
||||
}
|
||||
|
||||
return () => {
|
||||
const indexOfObserver = this.changeObservers.indexOf(callback);
|
||||
this.changeObservers.splice(indexOfObserver, 1);
|
||||
}
|
||||
}
|
||||
|
||||
private notifyObserversOfAppChange() {
|
||||
|
||||
Reference in New Issue
Block a user