diff --git a/src/app/pages/marketdetail/marketdetail.page.html b/src/app/pages/marketdetail/marketdetail.page.html index 2b212fb..11487c1 100644 --- a/src/app/pages/marketdetail/marketdetail.page.html +++ b/src/app/pages/marketdetail/marketdetail.page.html @@ -114,11 +114,11 @@ Silhouette of mountains Waiting for feedback - Sent: 10-10-2021 + Sent: {{interestDate |date}} - Here's a small text description for the card content. Nothing more, nothing less. + You have already sent a notice of interest. If the owner accepts, you will receive a notification to start. diff --git a/src/app/pages/marketdetail/marketdetail.page.ts b/src/app/pages/marketdetail/marketdetail.page.ts index 2f68f04..50ad68a 100644 --- a/src/app/pages/marketdetail/marketdetail.page.ts +++ b/src/app/pages/marketdetail/marketdetail.page.ts @@ -36,11 +36,12 @@ export class MarketdetailPage implements OnInit { } interestStatus: boolean= false; - + interestDate: string ='10-10-2020'; ngOnInit() { this.session_image_server = this.sessionDataProviderService.session_image_server; this.curr_session=this.sessionDataProviderService.session; this.interestStatus = this.waitingInterestService.interestStatus(this.jobData, this.waitingInterestService.interestJobsData); + this.interestDate = this.waitingInterestService.interestDate; } diff --git a/src/app/pages/my-course/my-course.page.ts b/src/app/pages/my-course/my-course.page.ts index 20a5452..aef72c6 100644 --- a/src/app/pages/my-course/my-course.page.ts +++ b/src/app/pages/my-course/my-course.page.ts @@ -2,6 +2,7 @@ import { Router } from '@angular/router'; import { Component, OnInit } from '@angular/core'; import { WrenchService } from 'src/app/services/wrench.service'; import {SessionDataProviderService} from "../../store/session-data-provider.service"; +import {WaitingInterestService} from "../../store/waiting-interest.service"; @Component({ selector: 'app-my-course', templateUrl: './my-course.page.html', @@ -16,7 +17,8 @@ export class MyCoursePage implements OnInit { constructor( private router: Router, public sessionDataProviderService: SessionDataProviderService, - private wrenchService: WrenchService + private wrenchService: WrenchService, + private waitingInterestService:WaitingInterestService ) { } ngOnInit() { diff --git a/src/app/store/waiting-interest.service.ts b/src/app/store/waiting-interest.service.ts index 8e34ad6..def287f 100644 --- a/src/app/store/waiting-interest.service.ts +++ b/src/app/store/waiting-interest.service.ts @@ -20,6 +20,7 @@ export class WaitingInterestService { interestTotalData: any; interestJobsData: []; total_jobs: number = 0; + interestDate: string; getInterestList() { console.log("***** ACTUAL WaitingInterestService==> --- > "); @@ -50,12 +51,12 @@ export class WaitingInterestService { } for (var i = 0; i < InterestLits.length; i++) { - console.log("GGGGG1----- ", InterestLits[i]); - console.log("GGGGG2----- ", InterestLits[i]["offer_code"]); - console.log("GGGGG3----- ", JobData.offer_code); + // console.log("GGGGG1----- ", InterestLits[i]); + // console.log("GGGGG2----- ", InterestLits[i]["offer_code"]); + // console.log("GGGGG3----- ", JobData.offer_code); if (InterestLits[i]["offer_code"] === JobData.offer_code) { - debugger; + this.interestDate =InterestLits[i]["sent"]; return true; } }