Pref page
This commit is contained in:
@@ -1,8 +1,13 @@
|
|||||||
<!--<ion-header>-->
|
<ion-header mode="ios" class="ion-no-border">
|
||||||
<!-- <ion-toolbar>-->
|
<ion-toolbar>
|
||||||
<!-- <ion-title>preferences</ion-title>-->
|
<!-- <ion-buttons slot="start" (click)="onBack()">-->
|
||||||
<!-- </ion-toolbar>-->
|
<!-- <ion-button>-->
|
||||||
<!--</ion-header>-->
|
<!-- <ion-icon name="arrow-back-outline"></ion-icon>-->
|
||||||
|
<!-- </ion-button>-->
|
||||||
|
<!-- </ion-buttons>-->
|
||||||
|
<ion-title>Use Preference</ion-title>
|
||||||
|
</ion-toolbar>
|
||||||
|
</ion-header>
|
||||||
|
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<div class="ion-padding">
|
<div class="ion-padding">
|
||||||
@@ -31,7 +36,7 @@
|
|||||||
<ion-radio-group name="user_pref" [(ngModel)]='user_pref' value="{{user_pref_value}}" (ionChange)="getPrefValue()">
|
<ion-radio-group name="user_pref" [(ngModel)]='user_pref' value="{{user_pref_value}}" (ionChange)="getPrefValue()">
|
||||||
<ion-item *ngFor="let item of prefData" style="padding: 2px 10px 10px 2px; font-size: 24px;">
|
<ion-item *ngFor="let item of prefData" style="padding: 2px 10px 10px 2px; font-size: 24px;">
|
||||||
<ion-label class="ion-text-wrap" style="font-size: 22px;">{{item.description}}</ion-label>
|
<ion-label class="ion-text-wrap" style="font-size: 22px;">{{item.description}}</ion-label>
|
||||||
<ion-radio slot="end" value="{{item.pref}}"></ion-radio>
|
<ion-radio style="font-size: 24px;" slot="end" value="{{item.pref}}"></ion-radio>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-radio-group>
|
</ion-radio-group>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
|||||||
@@ -59,8 +59,15 @@ export class PreferencesPage implements OnInit {
|
|||||||
|
|
||||||
@ViewChild('user_pref') user_pref;
|
@ViewChild('user_pref') user_pref;
|
||||||
getPrefValue(){
|
getPrefValue(){
|
||||||
|
|
||||||
console.log(this.user_pref);
|
console.log(this.user_pref);
|
||||||
|
//setUserPreferences
|
||||||
|
this.wrenchService.setUserPreferences(this.reqData).subscribe(
|
||||||
|
prefTotalData => {
|
||||||
|
this.prefTotalData = prefTotalData;
|
||||||
|
console.log("prefTotalData RETURN->", this.prefTotalData);
|
||||||
|
this.prefData = this.prefTotalData.result_list;
|
||||||
|
// debugger; result_list
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -231,6 +231,10 @@ export class WrenchService {
|
|||||||
usePreferences(reqData){
|
usePreferences(reqData){
|
||||||
return this.getPostData("preferences", reqData);
|
return this.getPostData("preferences", reqData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setUserPreferences(reqData){
|
||||||
|
return this.getPostData("setpreferences", reqData);
|
||||||
|
}
|
||||||
jobGroupMemberAdd(reqData){
|
jobGroupMemberAdd(reqData){
|
||||||
return this.getPostData("groupmemberadd", reqData);
|
return this.getPostData("groupmemberadd", reqData);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user