fix permissions
This commit is contained in:
parent
c5d0f67c0d
commit
fbf0d81aff
|
|
@ -27,6 +27,7 @@
|
|||
@inject IDialogService DialogService
|
||||
@inject NavigationManager NavigationManager
|
||||
@inject GameHubService HubService
|
||||
@inject IState<AuthState> AuthState
|
||||
|
||||
<PageTitle>Spieltag Details</PageTitle>
|
||||
|
||||
|
|
@ -68,6 +69,8 @@ else
|
|||
</MudStack>
|
||||
</MudItem>
|
||||
<MudItem xs="12" md="6" Class="d-flex justify-end align-center flex-wrap gap-2">
|
||||
@if (AuthState.Value.IsClubEditor || AuthState.Value.IsClubAdmin || AuthState.Value.IsSuperAdmin)
|
||||
{
|
||||
@if (Day.Status == DayStatus.Started && !GameState.Value.IsGameActive)
|
||||
{
|
||||
<MudButton Variant="Variant.Filled"
|
||||
|
|
@ -98,6 +101,7 @@ else
|
|||
@GetNextStatusLabel(Day.Status)
|
||||
</MudButton>
|
||||
}
|
||||
}
|
||||
@if (Day.Status == DayStatus.New)
|
||||
{
|
||||
<MudButton Variant="Variant.Outlined"
|
||||
|
|
@ -346,6 +350,10 @@ else
|
|||
</MudTd>
|
||||
<MudTd DataLabel="Aktionen" Style="text-align: right">
|
||||
<MudStack Row="true" Spacing="1" Justify="Justify.FlexEnd">
|
||||
@if (AuthState.Value.IsClubEditor || AuthState.Value.IsClubAdmin || AuthState.Value.IsSuperAdmin)
|
||||
{
|
||||
@if (@context.ExpenseType == ExpenseType.Material)
|
||||
{
|
||||
@if (context.PersonExpenseStatus == PersonExpenseStatus.Open)
|
||||
{
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Check"
|
||||
|
|
@ -362,6 +370,8 @@ else
|
|||
OnClick="@(() => MarkAsOpen(context))"
|
||||
Title="Als offen markieren"/>
|
||||
}
|
||||
}
|
||||
|
||||
@if (Day.Status != DayStatus.Closed)
|
||||
{
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Delete"
|
||||
|
|
@ -370,6 +380,7 @@ else
|
|||
OnClick="@(() => ConfirmDeleteExpense(context))"
|
||||
Title="Löschen"/>
|
||||
}
|
||||
}
|
||||
</MudStack>
|
||||
</MudTd>
|
||||
</RowTemplate>
|
||||
|
|
|
|||
|
|
@ -83,6 +83,8 @@
|
|||
OnClick="@(() => NavigateToDayDetails(context))"
|
||||
OnClick:stopPropagation="true"/>
|
||||
</MudTooltip>
|
||||
@if (AuthState.Value.IsClubEditor || AuthState.Value.IsClubAdmin || AuthState.Value.IsSuperAdmin)
|
||||
{
|
||||
<MudTooltip Text="Bearbeiten">
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Edit"
|
||||
Size="Size.Small"
|
||||
|
|
@ -90,6 +92,9 @@
|
|||
OnClick="@(() => OpenEditDialog(context))"
|
||||
OnClick:stopPropagation="true"/>
|
||||
</MudTooltip>
|
||||
}
|
||||
@if (AuthState.Value.IsClubAdmin || AuthState.Value.IsSuperAdmin)
|
||||
{
|
||||
<MudTooltip Text="Löschen">
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Delete"
|
||||
Size="Size.Small"
|
||||
|
|
@ -98,6 +103,9 @@
|
|||
OnClick="@(() => ConfirmDelete(context))"
|
||||
OnClick:stopPropagation="true"/>
|
||||
</MudTooltip>
|
||||
}
|
||||
@if (AuthState.Value.IsClubEditor || AuthState.Value.IsClubAdmin || AuthState.Value.IsSuperAdmin)
|
||||
{
|
||||
<MudTooltip Text="Protokolle versenden">
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Mail"
|
||||
Size="Size.Small"
|
||||
|
|
@ -105,6 +113,7 @@
|
|||
OnClick="@(() => SentProtocol(context))"
|
||||
OnClick:stopPropagation="true" />
|
||||
</MudTooltip>
|
||||
}
|
||||
</MudTd>
|
||||
</RowTemplate>
|
||||
<PagerContent>
|
||||
|
|
|
|||
Loading…
Reference in New Issue