Skip to content

Commit

Permalink
Clear selection in dependency dashboard after microservice deletion #100
Browse files Browse the repository at this point in the history
  • Loading branch information
tillias committed Nov 10, 2020
1 parent 5920654 commit 437526d
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 437526d

Please sign in to comment.