confirm
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
</div>
|
||||
|
||||
<div *ngIf="job_group> 0 && group_member_count > 0" style="margin-top: 20px; padding: 5px;">
|
||||
<ion-button size="small" shape="round" expand="block">Send Task to Group</ion-button>
|
||||
<ion-button size="small" shape="round" expand="block" (click)="sendOffers()">Send Task to Group</ion-button>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {Component, OnInit, ViewChild} from '@angular/core';
|
||||
import {SessionDataProviderService} from "../../store/session-data-provider.service";
|
||||
import {WrenchService} from "../../services/wrench.service";
|
||||
import {LoadingController} from "@ionic/angular";
|
||||
import {AlertController, LoadingController} from "@ionic/angular";
|
||||
import {JobgroupDataService} from "../../store/jobgroup-data.service";
|
||||
|
||||
@Component({
|
||||
@@ -15,6 +15,7 @@ export class JobGroupComponent implements OnInit {
|
||||
constructor( public sessionDataProviderService: SessionDataProviderService,
|
||||
private wrenchService: WrenchService,
|
||||
public jobgroupDataService: JobgroupDataService,
|
||||
private alertController: AlertController,
|
||||
private loadingCtrl: LoadingController) { }
|
||||
|
||||
jobGroupDataTotalResult: any;
|
||||
@@ -47,4 +48,31 @@ export class JobGroupComponent implements OnInit {
|
||||
this.group_member_count= this.jobGroupListFilterdData.length;
|
||||
}
|
||||
|
||||
async sendOffers() {
|
||||
// this.sessionDataProviderService.DestroySessionOnLogout();
|
||||
// this.router.navigate(['login']);
|
||||
//this.requestLogout();
|
||||
|
||||
const alert = await this.alertController.create({
|
||||
header: "Send offer to group ?",
|
||||
message: "Confirm you are ready to send this offer now.",
|
||||
buttons: [
|
||||
{
|
||||
text: "Cancel",
|
||||
role: "cancel",
|
||||
handler: () => {
|
||||
|
||||
},
|
||||
},
|
||||
{
|
||||
text: "Send now",
|
||||
handler: () => {
|
||||
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
await alert.present();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user