Skip to content

Commit

Permalink
Merge pull request #104 from tillias/dev
Browse files Browse the repository at this point in the history
Clear selection in dependency dashboard after microservice deletion #100
  • Loading branch information
tillias authored Nov 10, 2020
2 parents 54b89f1 + 437526d commit dc58c16
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,16 @@ export class DependencyDashboardComponent implements OnInit, AfterViewInit, OnDe
}

registerChangeInDependencies(): void {
this.subscription = this.eventManager.subscribe('dependencyListModification', () => this.refreshGraph());
this.subscription.add(this.eventManager.subscribe('microserviceListModification', () => this.refreshGraph()));
this.subscription = this.eventManager.subscribe('dependencyListModification', () => {
this.refreshGraph();
this.edgeSelection = undefined;
});
this.subscription.add(
this.eventManager.subscribe('microserviceListModification', () => {
this.refreshGraph();
this.nodeSelection = undefined;
})
);
}

ngAfterViewInit(): void {
Expand Down

0 comments on commit dc58c16

Please sign in to comment.