From ae3fe294018363e8c9f20bb12ebcd137fb9cd8e2 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 2 Jul 2024 09:29:54 -0400 Subject: [PATCH] pref set to session --- src/app/pages/preferences/preferences.page.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/pages/preferences/preferences.page.ts b/src/app/pages/preferences/preferences.page.ts index d0069cc..0b2d5a0 100644 --- a/src/app/pages/preferences/preferences.page.ts +++ b/src/app/pages/preferences/preferences.page.ts @@ -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; + } } ); }