waiting message

This commit is contained in:
CHIEFSOFT\ameye
2023-11-12 21:47:54 -05:00
parent 5e218ac11e
commit 8d18cbee9c
4 changed files with 12 additions and 8 deletions
@@ -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;
}
+3 -1
View File
@@ -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() {
+5 -4
View File
@@ -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;
}
}