From b87b9625b03ee7d0c2732e8286c8156b49d9a8d4 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 8 Feb 2024 13:09:45 -0500 Subject: [PATCH] fix start page --- src/app/pages/family/family.page.html | 19 +++++++++++++++++++ src/app/pages/family/family.page.ts | 6 ++++++ 2 files changed, 25 insertions(+) diff --git a/src/app/pages/family/family.page.html b/src/app/pages/family/family.page.html index 55698e0..265172f 100644 --- a/src/app/pages/family/family.page.html +++ b/src/app/pages/family/family.page.html @@ -17,8 +17,27 @@
+
Your Wallet:
+
+
+
+
+ {{item.description}} + + Balance {{item.amount*0.01 | number : '1.2-2'}} +
+
+ + + +
+ +
+ +
Select kid to send reward to:
+
diff --git a/src/app/pages/family/family.page.ts b/src/app/pages/family/family.page.ts index eeb0a36..14e4227 100644 --- a/src/app/pages/family/family.page.ts +++ b/src/app/pages/family/family.page.ts @@ -4,6 +4,7 @@ import {Router} from "@angular/router"; import { WrenchService } from 'src/app/services/wrench.service'; import {SessionDataProviderService} from "../../store/session-data-provider.service"; import {FamilysuggestPendingService} from "../../store/familysuggest-pending.service"; +import {UserWalletService} from "../../store/user-wallet.service"; @Component({ @@ -23,12 +24,15 @@ export class FamilyPage implements OnInit { currFamState:any; family_action:string="DEFAULT_FAMILY_PAGE"; page_title:string = 'Family Account'; + currency_url:string="https://www.wrenchboard.com/assets/images/apps/currency/"; + walletData:[]; constructor( private navctr: NavController, private router: Router, public sessionDataProviderService: SessionDataProviderService, private wrenchService: WrenchService, + public userWalletService: UserWalletService, public familysuggestPendingService: FamilysuggestPendingService ) { this.etag = '' + Date.now(); @@ -37,6 +41,8 @@ export class FamilyPage implements OnInit { }); this.page_title = 'Family Account'; this.currFamState = this.router.getCurrentNavigation().extras.state; + this.walletData = this.userWalletService.walletData; + if ( this.currFamState != undefined && this.currFamState != null){ this.family_action = this.currFamState.family_action; this.page_title= "Send Reward";