diff --git a/src/app/pages/home/home.page.ts b/src/app/pages/home/home.page.ts index 1a3fd20..c5561c1 100644 --- a/src/app/pages/home/home.page.ts +++ b/src/app/pages/home/home.page.ts @@ -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']); } diff --git a/src/app/pages/profile/profile.page.html b/src/app/pages/profile/profile.page.html index 4f8dd24..3ff3688 100644 --- a/src/app/pages/profile/profile.page.html +++ b/src/app/pages/profile/profile.page.html @@ -29,6 +29,12 @@ + + + Family Profile + + + Notifications diff --git a/src/app/pages/profile/profile.page.ts b/src/app/pages/profile/profile.page.ts index a5438e2..50c4569 100644 --- a/src/app/pages/profile/profile.page.ts +++ b/src/app/pages/profile/profile.page.ts @@ -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']); }