Componets
This commit is contained in:
@@ -18,6 +18,7 @@ export class SuggestedlistComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
this.getFamilySuggestList();
|
||||
}
|
||||
|
||||
usrData: {
|
||||
action:number, member_id: number, uid: string,
|
||||
sessionid: string,
|
||||
@@ -44,8 +45,11 @@ export class SuggestedlistComponent implements OnInit {
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
getSuggestedDetails(item){
|
||||
this.router.navigate(['suggestdetails'],{state: item});
|
||||
var stateParam = {
|
||||
itemData: item,
|
||||
getFamilySuggestList: this.getFamilySuggestList()
|
||||
};
|
||||
this.router.navigate(['suggestdetails'],{state: stateParam});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
<div *ngIf = "accountType == 'FAMILY'; else elseFulltag">
|
||||
<div class="profile">
|
||||
<div class="bg_image back_image" [style.backgroundImage]="'url(https://www.wrenchboard.com/assets/images/profile.jpg)'">
|
||||
<div class="icon">
|
||||
<ion-icon name="pencil" (click)="onProfile()"></ion-icon>
|
||||
</div>
|
||||
<!-- <div class="icon">-->
|
||||
<!-- <ion-icon name="pencil" (click)="onProfile()"></ion-icon>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<div class="title">
|
||||
<ion-label style="font-size: 17px; font-family: 'bold';">{{firstname}} {{lastname}}</ion-label>
|
||||
<ion-label style="font-size: 13px;">{{email}}</ion-label>
|
||||
<!-- <ion-label style="font-size: 13px;">{{email}}</ion-label>-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -13,7 +13,8 @@ export class SuggestdetailsPage implements OnInit {
|
||||
|
||||
|
||||
tabs = 'about';
|
||||
suggestData:any;
|
||||
suggestTotalData:any;
|
||||
suggestData:any;
|
||||
suggestActionData:any;
|
||||
constructor(
|
||||
private navctr: NavController,
|
||||
@@ -22,9 +23,13 @@ suggestActionData:any;
|
||||
private alertController:AlertController,
|
||||
private wrenchService: WrenchService
|
||||
) {
|
||||
this.suggestData = this.router.getCurrentNavigation().extras.state;
|
||||
console.log("XXXXX 1", this.router.getCurrentNavigation().extras);
|
||||
console.log("XXXXX 2", this.router.getCurrentNavigation().extras.state);
|
||||
// debugger;
|
||||
this.suggestTotalData = this.router.getCurrentNavigation().extras.state;
|
||||
this.suggestData = this.suggestTotalData.itemData;
|
||||
|
||||
|
||||
// console.log("XXXXX 1", this.router.getCurrentNavigation().extras);
|
||||
// console.log("XXXXX 2", this.router.getCurrentNavigation().extras.state);
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -38,8 +43,8 @@ suggestActionData:any;
|
||||
this.router.navigate(['mentor']);
|
||||
}
|
||||
|
||||
onEnroll() {
|
||||
this.router.navigate(['enroll']);
|
||||
refreshTaskList() {
|
||||
//this.router.navigate(['enroll']);
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +65,7 @@ suggestActionData:any;
|
||||
{
|
||||
text: "Send",
|
||||
handler: () => {
|
||||
this.setSuggestStatus('REMIND_REQUEST');
|
||||
this.setSuggestStatus(222); // remind
|
||||
this.onBack();
|
||||
},
|
||||
},
|
||||
@@ -84,7 +89,8 @@ suggestActionData:any;
|
||||
{
|
||||
text: "Delete",
|
||||
handler: () => {
|
||||
this.setSuggestStatus('CANCEL_REQUEST');
|
||||
this.setSuggestStatus(555); // cancel
|
||||
this.refreshTaskList();
|
||||
this.onBack();
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user