diff --git a/src/app/app.component.html b/src/app/app.component.html index 22eddca..8f395d2 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,6 +1,6 @@
- +
+ + +
+
diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 344b2b7..7b3d26f 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -99,4 +99,8 @@ export class AppComponent implements OnInit { // Load Detail Page Translations this.detailTranslation.congratulations = await this.translateService.getData(this.detailTranslation.congratulations, lang); } + + goHome() { + this.router.navigate(['/home']); + } } diff --git a/src/app/component/list/list.component.ts b/src/app/component/list/list.component.ts index d5edf8b..1ffdc25 100644 --- a/src/app/component/list/list.component.ts +++ b/src/app/component/list/list.component.ts @@ -1,9 +1,7 @@ import {Component, OnChanges, OnInit, SimpleChanges} from '@angular/core'; -import {ActivatedRoute} from "@angular/router"; +import {ActivatedRoute, Router} from "@angular/router"; import {positionService} from "../../service/position.service"; import {listTranslations} from "../../interface/translations"; -import {TranslateService} from "../../service/language/translate.service"; -import {ReadTranslateJsonService} from "../../service/language/readTranslateJson.service"; import {LocationService} from "../../service/http/location.service"; import {LocationEntity} from "../../interface/LocationEntity"; import {WaypointsEntity} from "../../interface/WaypointsEntity"; diff --git a/src/app/component/management/management.component.html b/src/app/component/management/management.component.html index 4b927b8..efb2891 100644 --- a/src/app/component/management/management.component.html +++ b/src/app/component/management/management.component.html @@ -130,7 +130,7 @@ -
+

{{translations.addWaypointButton}}