From 01cf9073c25641f6b96ccde73f13bd825523a24d Mon Sep 17 00:00:00 2001 From: Thiemann96 Date: Fri, 6 Mar 2020 15:17:02 +0100 Subject: [PATCH] translate to mysensebox component --- src/app/app.component.ts | 2 +- src/pages/my-sense-box/my-sense-box.html | 13 ++++--------- src/pages/my-sense-box/my-sense-box.module.ts | 2 ++ src/pages/my-sense-box/my-sense-box.ts | 2 -- 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 1045b96..8b42a75 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -42,7 +42,7 @@ export class openSenseApp { }, { title: 'MENU.MYSENSEBOX', - icon: "settings", + icon: "person", component : 'LoginPage' } ]; diff --git a/src/pages/my-sense-box/my-sense-box.html b/src/pages/my-sense-box/my-sense-box.html index 6eb3f1d..1b55525 100644 --- a/src/pages/my-sense-box/my-sense-box.html +++ b/src/pages/my-sense-box/my-sense-box.html @@ -1,15 +1,10 @@ - - - mySenseBox + + {{'MYSENSEBOX.TITLE' | translate}} - diff --git a/src/pages/my-sense-box/my-sense-box.module.ts b/src/pages/my-sense-box/my-sense-box.module.ts index d6df57d..be04907 100644 --- a/src/pages/my-sense-box/my-sense-box.module.ts +++ b/src/pages/my-sense-box/my-sense-box.module.ts @@ -1,12 +1,14 @@ import { NgModule } from '@angular/core'; import { IonicPageModule } from 'ionic-angular'; import { MySenseBoxPage } from './my-sense-box'; +import { TranslateModule } from '@ngx-translate/core'; @NgModule({ declarations: [ MySenseBoxPage, ], imports: [ + TranslateModule, IonicPageModule.forChild(MySenseBoxPage), ], }) diff --git a/src/pages/my-sense-box/my-sense-box.ts b/src/pages/my-sense-box/my-sense-box.ts index 9c4ee83..6e4dc30 100644 --- a/src/pages/my-sense-box/my-sense-box.ts +++ b/src/pages/my-sense-box/my-sense-box.ts @@ -1,6 +1,5 @@ import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams } from 'ionic-angular'; -import {LoginProvider} from "../../providers/LoginProvider/LoginProvider"; import { SensorsPage } from '../sensors/sensors'; import { ConfigurationPage } from '../configuration/configuration'; /** @@ -20,7 +19,6 @@ export class MySenseBoxPage { private token:string = this.navParams.data[1]; constructor(public navCtrl: NavController, public navParams: NavParams, - private loginProvider: LoginProvider ) { }