Self hosted FLOSS fitness/workout, nutrition and weight tracker
Remove empty lifecycle methods
Roland Geiderd4ceb66d279f
diff --git a/angular/src/app/exercise/exercise-detail/exercise-detail.component.ts b/angular/src/app/exercise/exercise-detail/exercise-detail.component.tsindex 53623da05..613744634 100644--- a/angular/src/app/exercise/exercise-detail/exercise-detail.component.ts+++ b/angular/src/app/exercise/exercise-detail/exercise-detail.component.ts@@ -1,4 +1,4 @@-import {Component, Input, OnInit} from '@angular/core';+import {Component, Input} from '@angular/core';import {Exercise} from '../models/exercises/exercise.model';@Component({@@ -6,15 +6,10 @@ import {Exercise} from '../models/exercises/exercise.model';templateUrl: './exercise-detail.component.html',styleUrls: ['./exercise-detail.component.css']})-export class ExerciseDetailComponent implements OnInit {+export class ExerciseDetailComponent {@Input() exercise!: Exercise;constructor() {}-- ngOnInit(): void {- }--}diff --git a/angular/src/app/weight/weight-detail/weight-detail.component.ts b/angular/src/app/weight/weight-detail/weight-detail.component.tsindex 74b222dc8..3de5bf902 100644--- a/angular/src/app/weight/weight-detail/weight-detail.component.ts+++ b/angular/src/app/weight/weight-detail/weight-detail.component.ts@@ -1,4 +1,4 @@-import {Component, Input, OnInit} from '@angular/core';+import {Component, Input} from '@angular/core';import {WeightEntry} from '../models/weight.model';import {WeightService} from '../weight.service';@@ -7,7 +7,7 @@ import {WeightService} from '../weight.service';templateUrl: './weight-detail.component.html',styleUrls: ['./weight-detail.component.css']})-export class WeightDetailComponent implements OnInit {+export class WeightDetailComponent {@Input() entry!: WeightEntry;@Input() weightDiff?: number;@@ -17,9 +17,6 @@ export class WeightDetailComponent implements OnInit {constructor(private weightService: WeightService) {}- ngOnInit(): void {- }-toggleForm() {this.showForm = !this.showForm;}