This commit is contained in:
CHIEFSOFT\ameye
2023-12-18 05:48:55 -05:00
parent a69b084882
commit 699dc5fa39
2 changed files with 15 additions and 3 deletions
+5
View File
@@ -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>
+10 -3
View File
@@ -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);
}
}
);