Profile Page
This commit is contained in:
@@ -72,19 +72,26 @@ export class HomePage implements OnInit {
|
||||
|
||||
}
|
||||
onDetails(item) {
|
||||
var pageToNavigate = 'detail';
|
||||
// var pageToNavigate = 'detail';
|
||||
var pageToNavigate = '';
|
||||
// alert(item.link_path);
|
||||
switch (item.link_path){
|
||||
case 'referral':
|
||||
pageToNavigate = 'invite';
|
||||
break;
|
||||
|
||||
case 'blog-page':
|
||||
|
||||
break;
|
||||
|
||||
case 'acc-family':
|
||||
pageToNavigate = 'family';
|
||||
break;
|
||||
|
||||
}
|
||||
this.router.navigate([pageToNavigate]);
|
||||
if(pageToNavigate !=''){
|
||||
this.router.navigate([pageToNavigate]);
|
||||
}
|
||||
}
|
||||
|
||||
blogDetails(item) {
|
||||
@@ -92,6 +99,8 @@ export class HomePage implements OnInit {
|
||||
this.router.navigate([pageToNavigate],{state: item} );
|
||||
}
|
||||
|
||||
|
||||
|
||||
onNotification() {
|
||||
this.router.navigate(['notification']);
|
||||
}
|
||||
|
||||
@@ -29,6 +29,12 @@
|
||||
<ion-icon name="chevron-forward-outline" color="medium"></ion-icon>
|
||||
</ion-item>
|
||||
|
||||
<ion-item lines="none" (click)="onFamily()">
|
||||
<ion-icon name="person-outline" color="dark"></ion-icon>
|
||||
<ion-label>Family Profile</ion-label>
|
||||
<ion-icon name="chevron-forward-outline" color="medium"></ion-icon>
|
||||
</ion-item>
|
||||
|
||||
<ion-item lines="none" (click)="onNotification()">
|
||||
<ion-icon name="notifications-outline" color="dark"></ion-icon>
|
||||
<ion-label>Notifications</ion-label>
|
||||
|
||||
@@ -22,6 +22,9 @@ export class ProfilePage implements OnInit {
|
||||
this.email = this.sessionDataProviderService.username;
|
||||
}
|
||||
|
||||
onFamily() {
|
||||
this.router.navigate(['family']);
|
||||
}
|
||||
onProfile() {
|
||||
this.router.navigate(['edit-profile']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user