From ea691fc01e95034527cd806c0ca29f02e7584fae Mon Sep 17 00:00:00 2001 From: tillias Date: Tue, 3 Nov 2020 20:24:23 +0100 Subject: [PATCH] Display status and team name for microservice dialog(s) #90 --- .../impact-analysis-legend.component.ts | 9 ++++++++- .../entities/dependency/dependency-detail.component.html | 4 ++-- .../entities/dependency/dependency-update.component.html | 4 ++-- .../microservice/microservice-detail.component.html | 4 ++-- .../microservice/microservice-update.component.html | 4 ++-- 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/main/webapp/app/dashboard/impact-analysis/impact-analysis-legend/impact-analysis-legend.component.ts b/src/main/webapp/app/dashboard/impact-analysis/impact-analysis-legend/impact-analysis-legend.component.ts index 2890f19..e4b3384 100644 --- a/src/main/webapp/app/dashboard/impact-analysis/impact-analysis-legend/impact-analysis-legend.component.ts +++ b/src/main/webapp/app/dashboard/impact-analysis/impact-analysis-legend/impact-analysis-legend.component.ts @@ -25,7 +25,14 @@ export class ImpactAnalysisLegendComponent implements OnInit { } initDependencies(): void { + const targetId = this.analysisResult?.target?.id; this.dependencies = []; - this.analysisResult?.groups?.forEach(v => v.items?.forEach(i => this.dependencies.push(i.target))); + this.analysisResult?.groups?.forEach(v => + v.items?.forEach(i => { + if (i.target.id !== targetId) { + this.dependencies.push(i.target); + } + }) + ); } } diff --git a/src/main/webapp/app/entities/dependency/dependency-detail.component.html b/src/main/webapp/app/entities/dependency/dependency-detail.component.html index 4f4bc04..c52810c 100644 --- a/src/main/webapp/app/entities/dependency/dependency-detail.component.html +++ b/src/main/webapp/app/entities/dependency/dependency-detail.component.html @@ -19,13 +19,13 @@

DependencySource
- {{ dependency.source?.id }} + {{ dependency.source?.name }}
Target
- {{ dependency.target?.id }} + {{ dependency.target?.name }}
diff --git a/src/main/webapp/app/entities/dependency/dependency-update.component.html b/src/main/webapp/app/entities/dependency/dependency-update.component.html index cd19549..5b4e48b 100644 --- a/src/main/webapp/app/entities/dependency/dependency-update.component.html +++ b/src/main/webapp/app/entities/dependency/dependency-update.component.html @@ -33,7 +33,7 @@

Source
@@ -47,7 +47,7 @@

Target

diff --git a/src/main/webapp/app/entities/microservice/microservice-detail.component.html b/src/main/webapp/app/entities/microservice/microservice-detail.component.html index 196ded3..01cb8a2 100644 --- a/src/main/webapp/app/entities/microservice/microservice-detail.component.html +++ b/src/main/webapp/app/entities/microservice/microservice-detail.component.html @@ -35,13 +35,13 @@

Microservice<
Team
Status
diff --git a/src/main/webapp/app/entities/microservice/microservice-update.component.html b/src/main/webapp/app/entities/microservice/microservice-update.component.html index 1b80e6b..47d2792 100644 --- a/src/main/webapp/app/entities/microservice/microservice-update.component.html +++ b/src/main/webapp/app/entities/microservice/microservice-update.component.html @@ -87,7 +87,7 @@

Team

@@ -101,7 +101,7 @@

Status