From 2ccca9e98140e496f404d191644ecd3a1b71b507 Mon Sep 17 00:00:00 2001 From: Tobias Peper Date: Fri, 11 Apr 2025 21:38:15 +0200 Subject: [PATCH] Aktueller Stand --- src/app/app.component.html | 43 +++++++++++++++++------------- src/app/app.component.ts | 10 +++++++ src/app/chart/chart.component.html | 2 +- 3 files changed, 35 insertions(+), 20 deletions(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index 66ae61c..4d6a2ed 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,23 +1,28 @@
-
- Haushalt: - -
- - -
-
-
- -
- - - -
+
+
+
+ +
+ + +
+
+
+
+
+ +
+ + + +
+
+
diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 209c1d3..117830c 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -39,6 +39,16 @@ export class AppComponent implements OnInit, OnChanges { } } + getDurationName(): string { + var hours: number; + if (this.duration) { + hours = this.duration / 60; + return 'letzte ' + hours + ' Stunden'; + } else { + return 'Unbekannt'; + } + } + houseId: number | undefined = undefined; duration: number | undefined = undefined; } diff --git a/src/app/chart/chart.component.html b/src/app/chart/chart.component.html index ee4f8bf..320e9f3 100644 --- a/src/app/chart/chart.component.html +++ b/src/app/chart/chart.component.html @@ -1,3 +1,3 @@ -
+