@page "/settings"

Settings

Start Page
OpenAbout()) Text="About" ButtonStyle="ButtonStyle.Info" />
OpenPrivacy()) Text="Privacy Policy" ButtonStyle="ButtonStyle.Info" />
SignOut()) Text="Sign Out" ButtonStyle="ButtonStyle.Danger" />
@code { [Inject] private SessionManager sessionManager { get; set; } [Inject] private NavigationManager navigationManager { get; set; } [Inject] private StartPageManager startManager { get; set; } private string currentStartPage { get; set; } protected override void OnInitialized() { currentStartPage = startManager.GetStartPage(); } private void OnStartPageChange(object value) { startManager.SetStartPage((string) value); } private void SignOut() { sessionManager.SignOut(); navigationManager.NavigateTo("/"); } private async void OpenAbout() { await Browser.Default.OpenAsync("https://sarsoo.xyz/selector"); } private async void OpenPrivacy() { await Browser.Default.OpenAsync("https://selector.sarsoo.xyz/privacy"); } }