loading
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {AlertController, NavController} from "@ionic/angular";
|
||||
import {AlertController, LoadingController, NavController} from "@ionic/angular";
|
||||
import {Router} from "@angular/router";
|
||||
import {SessionDataProviderService} from "../../store/session-data-provider.service";
|
||||
import {WrenchService} from "../../services/wrench.service";
|
||||
@@ -20,7 +20,8 @@ export class JobreviewPage implements OnInit {
|
||||
private router: Router,
|
||||
public sessionDataProviderService: SessionDataProviderService,
|
||||
private wrenchService: WrenchService,
|
||||
private alertController:AlertController
|
||||
private alertController:AlertController,
|
||||
private loadingCtrl: LoadingController
|
||||
) {
|
||||
this.jobData = this.router.getCurrentNavigation().extras.state;
|
||||
this.item_banner = this.jobData.banner;
|
||||
@@ -111,7 +112,10 @@ export class JobreviewPage implements OnInit {
|
||||
|
||||
*/
|
||||
async doJobAction(actionType){
|
||||
|
||||
const loading = await this.loadingCtrl.create({
|
||||
message: 'Updating Status...',
|
||||
duration: 2500,
|
||||
});
|
||||
this.reqData = {
|
||||
action:14015,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
@@ -121,7 +125,7 @@ export class JobreviewPage implements OnInit {
|
||||
contract_uid:this.jobData.contract_uid,
|
||||
job_action:actionType
|
||||
};
|
||||
|
||||
loading.present();
|
||||
this.wrenchService.getMyFiles(this.reqData).subscribe(
|
||||
doJobActionResponse => {
|
||||
this.doJobActionResponse = doJobActionResponse;
|
||||
|
||||
Reference in New Issue
Block a user