Commit 9068a5cd authored by Cédric Moreau's avatar Cédric Moreau

[fix] Problème de titre "[object Object]"

parent 9185afae
......@@ -3,6 +3,6 @@
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title>{{ title }}</ion-title>
<ion-title>{{ titre }}</ion-title>
</ion-navbar>
</ion-header>
......@@ -10,7 +10,7 @@ import {AnnounceService} from "../../services/announce-service";
})
export class AccountPage implements OnInit {
title:string = "Consulter un vendeur"
titre:string = "Consulter un vendeur"
announces:any
constructor(
......
......@@ -2,8 +2,6 @@
<ion-row>
<ion-col col-12 col-sm-12 col-lg-8>
<h2 *ngIf="!accountService.acc.uuid">Création du compte ğannonce</h2>
<h2 *ngIf="accountService.acc.uuid">Modification du compte ğannonce</h2>
<form #accountForm="ngForm" >
<ion-list inset>
......
......@@ -9,7 +9,7 @@ import {LoginService} from "../../services/login-service";
})
export class AccountEditPage implements OnInit {
title:string = "Créer ou modifier mon compte"
titre:string
constructor(
private route: ActivatedRoute,
......@@ -22,10 +22,14 @@ export class AccountEditPage implements OnInit {
}
ngOnInit() {
this.titre = "Créer mon compte"
this.route.params.subscribe(params => {
if (params['pub']) {
return this.accountService.getAccountInfos(params['pub'])
.then(res => this.accountService.acc = res.acc)
.then(res => {
this.accountService.acc = res.acc
this.titre = "Modifier mon compte"
})
}
});
}
......
......@@ -10,7 +10,7 @@ import {AnnounceService} from "../../services/announce-service";
})
export class AnnouncePage implements OnInit {
title:string = "Consulter une annonce"
titre:string = "Consulter une annonce"
constructor(
private route: ActivatedRoute,
......
......@@ -10,7 +10,7 @@ import {AnnounceService} from "../../services/announce-service";
})
export class AnnounceEditPage implements OnInit {
title:string = "Éditer une annonce"
titre:string = "Éditer une annonce"
constructor(
private route: ActivatedRoute,
......
......@@ -12,7 +12,7 @@ const base58 = require('../../lib/base58')
})
export class ConnectPage implements OnInit {
title:string = "Se connecter"
titre:string = "Se connecter"
connectionType:string
pub:string
salt:string
......
......@@ -7,7 +7,7 @@ import {AnnounceService} from "../../services/announce-service";
})
export class HomePage {
title:string = "Toutes les annonces"
titre:string = "Toutes les annonces"
announces:Array<any>
constructor(private announceService:AnnounceService) {
......
......@@ -10,7 +10,7 @@ import {AccountService} from "../../services/account-service";
export class MyAnnouncesPage {
announces:any = []
title:string = "Mes annonces"
titre:string = "Mes annonces"
constructor(
public loginService:LoginService,
......
......@@ -9,7 +9,7 @@ import {co} from "co";
})
export class ProfilPage {
title:string = "Mon profil"
titre:string = "Mon profil"
enoughMoney:Boolean
constructor(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment