diff --git a/src/app/pages/home/home.page.ts b/src/app/pages/home/home.page.ts
index b9acac2..e352d9c 100644
--- a/src/app/pages/home/home.page.ts
+++ b/src/app/pages/home/home.page.ts
@@ -49,6 +49,15 @@ export class HomePage implements OnInit {
this.blogData = this.blogDataService.blogData;
this.active_job_count = this.sessionDataProviderService.active_job_count;
this.enableTracking = this.sessionDataProviderService.tracking;
+
+ addEventListener('dash_tool_myjobs', () => {
+ this. myJobs(1);
+ });
+
+ addEventListener('dash_tool_mywallet', () => {
+ this.myWallet();
+ });
+
}
allInitFunctions(){
@@ -69,7 +78,7 @@ export class HomePage implements OnInit {
//debugger;
- this.walletPresentation();
+ // this.walletPresentation();
}
ngOnInit() {
this.allInitFunctions();
@@ -81,14 +90,14 @@ export class HomePage implements OnInit {
console.log('Home page did enter - > ionViewWillEnter');
this.allInitFunctions();
}
- async walletPresentation(){
- this.walletData = this.userWalletService.getWallet();
- if( this.walletData?.length > 0 ) {
- var num = new Number(this.walletData[0].amount*0.01);
- //this.fee_display = num.toFixed(2); //outputs 14
- this.walletDescription = num.toFixed(2) + ' ' + this.walletData[0].description;
- }
- }
+ // async walletPresentation(){
+ // this.walletData = this.userWalletService.getWallet();
+ // if( this.walletData?.length > 0 ) {
+ // var num = new Number(this.walletData[0].amount*0.01);
+ // //this.fee_display = num.toFixed(2); //outputs 14
+ // this.walletDescription = num.toFixed(2) + ' ' + this.walletData[0].description;
+ // }
+ // }
goPlayground(){
this.router.navigate(['playground']);
}
@@ -104,7 +113,7 @@ export class HomePage implements OnInit {
this.getFamilySuggestList();
}
- this.walletPresentation();
+ // this.walletPresentation();
//debugger;
}
blogResult:any;
diff --git a/src/app/store/interval-refresh.service.ts b/src/app/store/interval-refresh.service.ts
index 62b1a75..ff0f827 100644
--- a/src/app/store/interval-refresh.service.ts
+++ b/src/app/store/interval-refresh.service.ts
@@ -5,6 +5,7 @@ import {TasksDataService} from "./tasks-data.service";
import {BannersDataService} from "./banners-data.service";
import {UsersoffersDataService} from "./usersoffers-data.service";
import {FamilyDataService} from "./family-data.service";
+import {UserWalletService} from "./user-wallet.service";
@Injectable({
providedIn: 'root'
@@ -16,7 +17,8 @@ export class IntervalRefreshService {
public tasksDataService:TasksDataService,
public bannersDataService:BannersDataService,
public usersoffersDataService:UsersoffersDataService,
- public familyDataService: FamilyDataService
+ public familyDataService: FamilyDataService,
+ public userWalletService: UserWalletService
) {
this.marketDataService.getJobsData();
}
@@ -33,6 +35,7 @@ export class IntervalRefreshService {
this.marketDataService.getJobsData();
this.tasksDataService.getJobsData();
this.usersoffersDataService.getMyOffersData();
+ this.userWalletService.getWalletData();
if ( this.sessionDataProviderService.account_type=='FAMILY'){
this.familyDataService.getFamilySuggestList();
diff --git a/src/app/store/user-wallet.service.ts b/src/app/store/user-wallet.service.ts
index 9e41f8a..60feb0c 100644
--- a/src/app/store/user-wallet.service.ts
+++ b/src/app/store/user-wallet.service.ts
@@ -25,8 +25,7 @@ export class UserWalletService {
}
rawWallet:any;
- getWallet(){
- // this.rawWallet = this.getWalletData();
+ async getWallet(){
return this.walletData;
}