show name of selected club
This commit is contained in:
parent
bb00aa8a11
commit
61bd41576a
|
|
@ -1,4 +1,5 @@
|
|||
@inherits FluxorLayout
|
||||
@using Koogle.Web.Store.ClubState
|
||||
@inherits FluxorLayout
|
||||
|
||||
@inject IState<AuthState> AuthState
|
||||
@inject IDispatcher Dispatcher
|
||||
|
|
@ -23,6 +24,8 @@
|
|||
<MudAppBar Elevation="1" Dense="true">
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="ToggleDrawer" />
|
||||
<MudText Typo="Typo.h6">KOOGLE</MudText>
|
||||
<MudSpacer/>
|
||||
<MudText Typo="Typo.caption">Club: @AuthState.Value.CurrentClub?.ClubName</MudText>
|
||||
<MudSpacer />
|
||||
@if (AuthState.Value.IsAuthenticated)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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<ClubEffects> _logger;
|
||||
private readonly ICurrentClubContext _cCurrentClubContext;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the ClubEffects class.
|
||||
/// </summary>
|
||||
public ClubEffects(IClubService clubService, ILogger<ClubEffects> logger)
|
||||
public ClubEffects(IClubService clubService, ILogger<ClubEffects> logger, ICurrentClubContext cCurrentClubContext)
|
||||
{
|
||||
_clubService = clubService;
|
||||
_logger = logger;
|
||||
_cCurrentClubContext = cCurrentClubContext;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue