This commit is contained in:
@@ -18,6 +18,12 @@ public partial class MainLayout : IDisposable
|
||||
new CartItem { Id = 3, Title = "Album Architectures, Maputo", Author = "Guedes Archive", Price = 350, Quantity = 1 }
|
||||
};
|
||||
|
||||
private void TriggerHeaderLogout()
|
||||
{
|
||||
// Force tear-down of the active client websocket pipeline safely
|
||||
Navigation.NavigateTo("/logout", forceLoad: true);
|
||||
}
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
Navigation.LocationChanged += OnLocationChanged;
|
||||
|
||||
Reference in New Issue
Block a user