pref set to session
This commit is contained in:
@@ -98,13 +98,16 @@ export class PreferencesPage implements OnInit {
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
user_pref: this.user_pref
|
||||
};
|
||||
//setUserPreferences
|
||||
this.wrenchService.setUserPreferences(this.reqSetData).subscribe(
|
||||
prefSetTotalData => {
|
||||
this.prefSetTotalData = prefSetTotalData;
|
||||
console.log("pref Set TotalData RETURN->", this.prefSetTotalData);
|
||||
//this.prefSetData = this.prefSetData.result_list;
|
||||
// debugger; result_list
|
||||
if (this.prefSetTotalData != null && this.prefSetTotalData.status =='OK' && this.prefSetTotalData.account_pref !='' ){
|
||||
// debugger;
|
||||
this.sessionDataProviderService.account_pref = this.prefSetTotalData.account_pref;
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user