From cc152c3f87a99b34379dacba207604b0ea1e4915 Mon Sep 17 00:00:00 2001 From: Rob Relyea Date: Thu, 22 Jun 2023 13:36:18 -0700 Subject: [PATCH] move profile to left. call 'your' -> 'primary' --- Program.cs | 2 +- Shared/Models/FamilyData/AppData.cs | 2 +- Shared/TopLine.razor | 9 ++++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Program.cs b/Program.cs index 5498554..99b3426 100644 --- a/Program.cs +++ b/Program.cs @@ -17,7 +17,7 @@ if (irsData != null) { builder.Services.AddSingleton(irsData); var appData = new AppData(new FamilyData(irsData)); - appData.CurrentProfileName = "your"; + appData.CurrentProfileName = "primary"; builder.Services.AddSingleton(appData); } else { throw new Exception("irsData is null"); diff --git a/Shared/Models/FamilyData/AppData.cs b/Shared/Models/FamilyData/AppData.cs index 1e5a595..af65bda 100644 --- a/Shared/Models/FamilyData/AppData.cs +++ b/Shared/Models/FamilyData/AppData.cs @@ -12,7 +12,7 @@ public string CurrentProfileKey { get { switch (CurrentProfileName) { - case "your": + case "primary": return "localSave"; default: return CurrentProfileName; diff --git a/Shared/TopLine.razor b/Shared/TopLine.razor index 619df70..3994899 100644 --- a/Shared/TopLine.razor +++ b/Shared/TopLine.razor @@ -6,8 +6,11 @@ @inject IRSData irsData @inject IJSRuntime JS +
+ Switch Profile +
- Profile list. Data is kept private: or + Data is kept private: or @@ -25,7 +28,7 @@ protected override async Task OnInitializedAsync() { ProfileUtilities.LocalStorageAccessor = LocalStorageAccessor; - appData.CurrentProfileName = "your"; + appData.CurrentProfileName = "primary"; await ProfileUtilities.Load(appData); var keys = new List(); @@ -38,7 +41,7 @@ case "i18nextLng": break; case "localSave": - keys.Add("your"); + keys.Add("primary"); break; default: keys.Add(value);