Assign tasks
This commit is contained in:
@@ -27,17 +27,14 @@ export class FamiliyDashComponent implements OnInit {
|
||||
private wrenchService: WrenchService) {
|
||||
|
||||
addEventListener('app_fastreward_action', () => {
|
||||
// this.pageItem.family_action = "FAMILY_ACTION_SEND_REWARD";
|
||||
this.router.navigate(['family'],{state: {page_name: 0, family_action: 'FAMILY_ACTION_SEND_REWARD'}});
|
||||
});
|
||||
|
||||
addEventListener('app_familiy_nokids_action', () => {
|
||||
// this.pageItem.family_action = "FAMILY_ACTION_NO_KIDS";
|
||||
this.router.navigate(['addfamilykid'],{state: {page_name: 0, family_action: 'FAMILY_ACTION_NO_KIDS'}});
|
||||
});
|
||||
|
||||
addEventListener('app_familiy_notask_action', () => {
|
||||
// this.pageItem.family_action = "FAMILY_ACTION_NO_TASKS";
|
||||
this.router.navigate(['family'],{state: {page_name: 0, family_action: 'FAMILY_ACTION_NO_TASKS'}});
|
||||
});
|
||||
|
||||
|
||||
@@ -15,6 +15,32 @@
|
||||
</ion-header>
|
||||
<ion-content>
|
||||
<div class="boxed_contents">
|
||||
|
||||
<div *ngIf="family_action=='FAMILY_ACTION_NO_TASKS';">
|
||||
<div class="ion-padding">
|
||||
|
||||
|
||||
<div style="font-weight: bolder; color: #8b198e; font-size: 16px; margin-top: 10px;">Select kid to send task to:</div>
|
||||
<div class="lesson">
|
||||
<div class="video" *ngFor="let item of familyData" (click)="familyMemeberToTaks(item)">
|
||||
<div class="left">
|
||||
<div class="bg_image men_image" [style.backgroundImage]="'url('+session_image_server+'/'+curr_session+'/family/'+item.family_uid+'?'+etag+')'"></div>
|
||||
|
||||
<div class="text">
|
||||
<ion-label class="bold_text name_bg_text">{{item.firstname}} {{item.lastname}} ({{item.age}})</ion-label>
|
||||
<!-- <ion-label class="grey_text"> {{item.last_login}}</ion-label>-->
|
||||
<ion-label class="extra_text"><span class="title">Last Login:</span>{{item.last_login | date}}</ion-label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<ion-icon name="chevron-forward-outline" color="medium"></ion-icon>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="family_action=='FAMILY_ACTION_SEND_REWARD';">
|
||||
<div class="ion-padding">
|
||||
<div style="font-weight: bolder; color: #8b198e; font-size: 16px;">Your Wallet:</div>
|
||||
|
||||
@@ -117,6 +117,16 @@ export class FamilyPage implements OnInit {
|
||||
this.router.navigate(["familymember"], { state: famItem });
|
||||
}
|
||||
|
||||
familyMemeberToTaks(item) {
|
||||
var famItem = {
|
||||
jobManagerActiveData: this.jobManagerActiveData,
|
||||
familyPendingData: this.familyPendingData,
|
||||
itemData: item,
|
||||
startPage: "TASK",
|
||||
};
|
||||
this.router.navigate(["familymember"], { state: famItem });
|
||||
}
|
||||
|
||||
usrData: {
|
||||
action: number;
|
||||
member_id: number;
|
||||
|
||||
@@ -69,6 +69,9 @@ export class FamilymemberPage implements OnInit {
|
||||
if (this.familyMemberData.startPage == 'WALLET'){
|
||||
this.startFamilyMemberReward();
|
||||
}
|
||||
if (this.familyMemberData.startPage == 'TASK'){
|
||||
this.tabs = 'about';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user