From 61bd41576a1d0b7f132faf8bdac19dce7997c3dc Mon Sep 17 00:00:00 2001 From: beo3000 Date: Thu, 25 Dec 2025 17:34:58 +0100 Subject: [PATCH] show name of selected club --- src/Koogle.Web/Components/Layout/MainLayout.razor | 5 ++++- src/Koogle.Web/Store/ClubState/ClubEffects.cs | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Koogle.Web/Components/Layout/MainLayout.razor b/src/Koogle.Web/Components/Layout/MainLayout.razor index 29e0332..f836110 100644 --- a/src/Koogle.Web/Components/Layout/MainLayout.razor +++ b/src/Koogle.Web/Components/Layout/MainLayout.razor @@ -1,4 +1,5 @@ -@inherits FluxorLayout +@using Koogle.Web.Store.ClubState +@inherits FluxorLayout @inject IState AuthState @inject IDispatcher Dispatcher @@ -23,6 +24,8 @@ KOOGLE + + Club: @AuthState.Value.CurrentClub?.ClubName @if (AuthState.Value.IsAuthenticated) { diff --git a/src/Koogle.Web/Store/ClubState/ClubEffects.cs b/src/Koogle.Web/Store/ClubState/ClubEffects.cs index 7eb3906..bba1971 100644 --- a/src/Koogle.Web/Store/ClubState/ClubEffects.cs +++ b/src/Koogle.Web/Store/ClubState/ClubEffects.cs @@ -1,4 +1,5 @@ using Fluxor; +using Koogle.Application.DTOs; using Koogle.Application.Interfaces; namespace Koogle.Web.Store.ClubState; @@ -11,14 +12,16 @@ public class ClubEffects { private readonly IClubService _clubService; private readonly ILogger _logger; + private readonly ICurrentClubContext _cCurrentClubContext; /// /// Initializes a new instance of the ClubEffects class. /// - public ClubEffects(IClubService clubService, ILogger logger) + public ClubEffects(IClubService clubService, ILogger logger, ICurrentClubContext cCurrentClubContext) { _clubService = clubService; _logger = logger; + _cCurrentClubContext = cCurrentClubContext; } ///