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