From dd39bf4b9c5b7e34196ba61bc54fdf0604f4c204 Mon Sep 17 00:00:00 2001 From: Ingo Sternberg Date: Tue, 16 Jul 2024 21:17:14 +0200 Subject: [PATCH] fix: facility information box Signed-off-by: Ingo Sternberg #243 --- .../facades/facility-detail.facade.ts | 2 +- .../facility-detail/facility-detail.page.html | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/libs/facilities/frontend/domain/src/lib/application/facades/facility-detail.facade.ts b/libs/facilities/frontend/domain/src/lib/application/facades/facility-detail.facade.ts index d40b12e4..08c3c53a 100644 --- a/libs/facilities/frontend/domain/src/lib/application/facades/facility-detail.facade.ts +++ b/libs/facilities/frontend/domain/src/lib/application/facades/facility-detail.facade.ts @@ -92,7 +92,7 @@ export class FacilityDetailFacade { private randomEcoScoreFromString(str: string) { // exception for the very legitimate waste disposal :D - if(str === 'totally legal waste disposal'){ + if(str === 'Totally legal waste disposal'){ return 26; } diff --git a/libs/facilities/frontend/view/src/lib/components/facility-detail/facility-detail.page.html b/libs/facilities/frontend/view/src/lib/components/facility-detail/facility-detail.page.html index 8a631b39..965b5ab5 100644 --- a/libs/facilities/frontend/view/src/lib/components/facility-detail/facility-detail.page.html +++ b/libs/facilities/frontend/view/src/lib/components/facility-detail/facility-detail.page.html @@ -11,11 +11,11 @@
@if(this.pumpChart(); as pumpChart){ -
+
} @if(this.envChart(); as envChart){ -
+
} @if(this.metricsChart(); as metricsChart){ -
+
} @@ -59,7 +59,13 @@ {{ getCasesText(facility.cases.length) }} -
+
+
+ + New Case + +
+ @if (facility.cases.length > 0) {
@@ -76,12 +82,6 @@ }
} - -
- - New Case - -