pref set to session

This commit is contained in:
CHIEFSOFT\ameye
2024-07-02 09:29:54 -04:00
parent 2a2659b179
commit ae3fe29401
@@ -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;
}
}
);
}