suggest
This commit is contained in:
@@ -110,6 +110,11 @@
|
||||
<ion-button size="small" shape="round" color="secondary" (click)="sendSuggestedTask()">Send</ion-button>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col style="text-align: center; font-weight: bolder; color: #0b5e86;">
|
||||
{{suggestMessage}}
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
|
||||
|
||||
|
||||
@@ -94,6 +94,7 @@ modalSeleted:any;
|
||||
};
|
||||
|
||||
suggestResult:any;
|
||||
suggestMessage:string='';
|
||||
async sendSuggestedTask(){
|
||||
|
||||
const loading = await this.loadingCtrl.create({
|
||||
@@ -119,10 +120,16 @@ modalSeleted:any;
|
||||
suggestResult => {
|
||||
loading.dismiss();
|
||||
this.suggestResult = suggestResult;
|
||||
|
||||
console.log("suggestResult RETURN->", this.suggestResult);
|
||||
setTimeout(()=>{
|
||||
this.cancel();
|
||||
}, 3000);
|
||||
if (this.suggestResult?.internal_return >=0 && this.suggestResult?.suggest_id> 0){
|
||||
this.suggestMessage="Send to parent.";
|
||||
setTimeout(()=>{
|
||||
this.suggestMessage='';
|
||||
this.cancel();
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user