data line

This commit is contained in:
CHIEFSOFT\ameye
2024-07-01 10:57:24 -04:00
parent 361fc8f15d
commit a1a643a3a8
2 changed files with 13 additions and 1 deletions
+11 -1
View File
@@ -16,9 +16,18 @@ export class PreferencesPage implements OnInit {
private navctr: NavController,
private router: Router,
private wrenchService: WrenchService,
public sessionDataProviderService:SessionDataProviderService) { }
public sessionDataProviderService:SessionDataProviderService) {
}
ngOnInit() {
debugger;
if (this.sessionDataProviderService.account_pref == 'GENERAL'){
this.user_pref_value = "PREF04";
}
else{
this.user_pref_value = this.sessionDataProviderService.account_pref;
}
this.getPreferenceData();
}
onBack() {
@@ -53,6 +62,7 @@ export class PreferencesPage implements OnInit {
console.log("prefTotalData RETURN->", this.prefTotalData);
this.prefData = this.prefTotalData.result_list;
// debugger; result_list
this.user_pref.refresh();
}
);
}
@@ -86,6 +86,7 @@ export class SessionDataProviderService {
history_types:any=[];
home_dash_type:string="DEFAULT_HOME_DASH";
family_action:string="";
account_pref:string="PREF04";
session_contructed:boolean = false;
@@ -212,6 +213,7 @@ export class SessionDataProviderService {
this.family_action =loginResult.family_action;
//this.pushNotificationProvider.tagUser(this.session);
this.session_contructed = true;
this.account_pref = loginResult.account_pref;
} catch (error) {