diff --git a/SharedProject/Models/UserSetting.cs b/SharedProject/Models/UserSetting.cs index ec92c9d..6020490 100644 --- a/SharedProject/Models/UserSetting.cs +++ b/SharedProject/Models/UserSetting.cs @@ -23,4 +23,6 @@ public class UserSetting public string MyDonName { get; set; } = String.Empty; public string Title { get; set; } = String.Empty; + + public uint TitlePlateId { get; set; } } \ No newline at end of file diff --git a/TaikoLocalServer/Controllers/Api/UserSettingsController.cs b/TaikoLocalServer/Controllers/Api/UserSettingsController.cs index 5aabad7..40f2b7a 100644 --- a/TaikoLocalServer/Controllers/Api/UserSettingsController.cs +++ b/TaikoLocalServer/Controllers/Api/UserSettingsController.cs @@ -37,7 +37,8 @@ public class UserSettingsController : BaseController PlaySetting = PlaySettingConverter.ShortToPlaySetting(user.OptionSetting), ToneId = user.SelectedToneId, MyDonName = user.MyDonName, - Title = user.Title + Title = user.Title, + TitlePlateId = user.TitlePlateId }; return Ok(response); } @@ -62,6 +63,7 @@ public class UserSettingsController : BaseController user.OptionSetting = PlaySettingConverter.PlaySettingToShort(userSetting.PlaySetting); user.MyDonName = userSetting.MyDonName; user.Title = userSetting.Title; + user.TitlePlateId = userSetting.TitlePlateId; context.Update(user); await context.SaveChangesAsync(); diff --git a/TaikoWebUI/Pages/Card.razor b/TaikoWebUI/Pages/Card.razor index a834e1a..0527dbb 100644 --- a/TaikoWebUI/Pages/Card.razor +++ b/TaikoWebUI/Pages/Card.razor @@ -13,40 +13,45 @@ - +

Profile Options

- - + - - - - - + + - - - - @foreach (var item in Enum.GetValues()) + + + @for (uint i = 0; i < 8; i++) { - + var index = i; + @titlePlateStrings[index] } - - + + + + @foreach (var item in Enum.GetValues()) + { + + } + + + +
- +

Song Options

- + @@ -54,7 +59,7 @@ - + @for (uint i = 0; i < 15; i++) { @@ -89,7 +94,7 @@
- + breadcrumbs = new() { - new BreadcrumbItem("Dashboard", href: "Dashboard"), + new BreadcrumbItem("Dashboard", href: ""), }; protected override async Task OnInitializedAsync()