From dd31f7352cd170616f03b1af301d4d2597ac3966 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Sun, 24 May 2026 01:25:02 +1000 Subject: Modified Razor pages and components to temporarily allow them to compile --- Pages/Component/Titlebar.razor | 93 +++++++++++++++++++++++------------------- 1 file changed, 52 insertions(+), 41 deletions(-) (limited to 'Pages/Component/Titlebar.razor') diff --git a/Pages/Component/Titlebar.razor b/Pages/Component/Titlebar.razor index 48257b2..521fb46 100644 --- a/Pages/Component/Titlebar.razor +++ b/Pages/Component/Titlebar.razor @@ -1,5 +1,7 @@ @inject IJSRuntime jsRuntime -@inject IUserService userService +@inject NavigationManager nav +@inject HBSession session; +@* @inject IUserService userService *@ - - - + @* *@ +} else { + +} @code { - private AboutDialog aboutDialog; + // private AboutDialog aboutDialog; + + public string Username { get; set; } = ""; + public string Password { get; set; } = ""; + + private bool IsLoginPage => + new Uri(nav.Uri).AbsolutePath.Equals("/Login", StringComparison.OrdinalIgnoreCase); + + private async void Login() { + await session.LoginAsync(Username, Password); + } } -- cgit v1.3