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 @@ -
+