refactor(app): split dashboard settings and layout into partial classes
This commit is contained in:
@@ -29,22 +29,3 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
private string clubName = string.Empty;
|
||||
private bool saving;
|
||||
private bool saved;
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
clubName = await SettingsService.GetClubNameAsync() ?? string.Empty;
|
||||
}
|
||||
|
||||
private async Task Save()
|
||||
{
|
||||
saving = true;
|
||||
saved = false;
|
||||
await SettingsService.SetClubNameAsync(clubName);
|
||||
saved = true;
|
||||
saving = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user