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