suggest status call
This commit is contained in:
@@ -42,9 +42,7 @@ suggestActionData:any;
|
||||
this.router.navigate(['enroll']);
|
||||
}
|
||||
|
||||
usrData: {
|
||||
action:number, member_id: number, uid: string, sessionid: string, limit:20, page:1,offset: 0
|
||||
};
|
||||
|
||||
|
||||
async sendReminder(){
|
||||
|
||||
@@ -62,7 +60,7 @@ suggestActionData:any;
|
||||
{
|
||||
text: "Send",
|
||||
handler: () => {
|
||||
|
||||
this.setSuggestStatus('REMIND_REQUEST');
|
||||
this.onBack();
|
||||
},
|
||||
},
|
||||
@@ -86,7 +84,7 @@ suggestActionData:any;
|
||||
{
|
||||
text: "Delete",
|
||||
handler: () => {
|
||||
|
||||
this.setSuggestStatus('CANCEL_REQUEST');
|
||||
this.onBack();
|
||||
},
|
||||
},
|
||||
@@ -95,17 +93,24 @@ suggestActionData:any;
|
||||
await alert.present();
|
||||
}
|
||||
statusResult:any;
|
||||
setSuggestStatus(){
|
||||
this.usrData =
|
||||
//define('WRENCHBOARD_FAMILY_SGGESTSTATUS', 22026);
|
||||
|
||||
suggestEditData: {
|
||||
action:number, member_id: number, uid: string, sessionid: string, suggest_uid:20, suggest_action: string,offset: 0
|
||||
};
|
||||
|
||||
setSuggestStatus(suggest_action){
|
||||
this.suggestEditData =
|
||||
{
|
||||
action:11055,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
limit:20, page:1,offset: 0
|
||||
action:22026,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
suggest_uid: this.suggestData.uid,
|
||||
suggest_action:suggest_action,offset: 0
|
||||
};
|
||||
|
||||
this.wrenchService.setSuggestStatus(this.usrData).subscribe(
|
||||
this.wrenchService.setSuggestStatus(this.suggestEditData).subscribe(
|
||||
statusResult => {
|
||||
this.statusResult = statusResult;
|
||||
console.log("statusResult RETURN->", this.statusResult);
|
||||
|
||||
Reference in New Issue
Block a user