From 437526d96c80c990d7b8a7bda440c34400f01acf Mon Sep 17 00:00:00 2001 From: tillias Date: Tue, 10 Nov 2020 07:23:39 +0100 Subject: [PATCH] Clear selection in dependency dashboard after microservice deletion #100 --- .../dependency-dashboard.component.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/app/dashboard/dependency-dashboard/dependency-dashboard.component.ts b/src/main/webapp/app/dashboard/dependency-dashboard/dependency-dashboard.component.ts index af14fe7..1bb8d3a 100644 --- a/src/main/webapp/app/dashboard/dependency-dashboard/dependency-dashboard.component.ts +++ b/src/main/webapp/app/dashboard/dependency-dashboard/dependency-dashboard.component.ts @@ -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 {