waiting message
This commit is contained in:
@@ -114,11 +114,11 @@
|
||||
<img alt="Silhouette of mountains" src="https://www.wrenchboard.com/assets/images/apps/waiting-task.jpg" />
|
||||
<ion-card-header>
|
||||
<ion-card-title>Waiting for feedback</ion-card-title>
|
||||
<ion-card-subtitle>Sent: 10-10-2021</ion-card-subtitle>
|
||||
<ion-card-subtitle>Sent: {{interestDate |date}}</ion-card-subtitle>
|
||||
</ion-card-header>
|
||||
|
||||
<ion-card-content>
|
||||
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.
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user