approve jobs
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {Component, Input, OnInit} from '@angular/core';
|
||||
import {NavController} from "@ionic/angular";
|
||||
import {Router} from "@angular/router";
|
||||
import {SessionDataProviderService} from "../../store/session-data-provider.service";
|
||||
import {WrenchService} from "../../services/wrench.service";
|
||||
|
||||
@Component({
|
||||
selector: 'app-interest-card',
|
||||
@@ -6,9 +10,29 @@ import { Component, OnInit } from '@angular/core';
|
||||
styleUrls: ['./interest-card.component.scss'],
|
||||
})
|
||||
export class InterestCardComponent implements OnInit {
|
||||
@Input() intData:any;
|
||||
@Input() intResponse: any;
|
||||
|
||||
constructor() { }
|
||||
currData:any;
|
||||
constructor( private navctr: NavController,
|
||||
private router: Router,
|
||||
public sessionDataProviderService: SessionDataProviderService,
|
||||
private wrenchService: WrenchService) {
|
||||
|
||||
ngOnInit() {}
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
var tt = this.intData;
|
||||
this.currData = this.intData;
|
||||
// debugger;
|
||||
|
||||
}
|
||||
|
||||
approveStart(){
|
||||
this.intResponse(this.intData, "APPROVED");
|
||||
}
|
||||
|
||||
rejectStart(){
|
||||
this.intResponse(this.intData, "REJECT");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user