fix: GroupStats.razor syntax and missing using for Claims
PR Checks / test-and-build (pull_request) Failing after 3m14s

- Add @using System.Security.Claims
- Fix quotation marks in @onclick lambdas (Razor parser error CS1026)
This commit is contained in:
root
2026-05-07 11:21:42 +00:00
parent b03929174a
commit 4d3362d93f
@@ -3,6 +3,7 @@
@using GmRelay.Shared.Domain
@using Microsoft.AspNetCore.Authorization
@using Microsoft.AspNetCore.Components.Authorization
@using System.Security.Claims
@attribute [Authorize]
@inject ISessionStore SessionStore
@inject AuthenticationStateProvider AuthStateProvider
@@ -67,14 +68,14 @@
<table class="gm-table" style="width: 100%;">
<thead>
<tr>
<th @onclick="() => SortBy("player")" style="cursor:pointer;">Игрок @(SortIndicator("player"))</th>
<th @onclick="() => SortBy("total")" style="cursor:pointer;text-align:center;">Всего @(SortIndicator("total"))</th>
<th @onclick="() => SortBy("confirmed")" style="cursor:pointer;text-align:center;">✅ @(SortIndicator("confirmed"))</th>
<th @onclick="() => SortBy("declined")" style="cursor:pointer;text-align:center;">❌ @(SortIndicator("declined"))</th>
<th @onclick="() => SortBy("noresponse")" style="cursor:pointer;text-align:center;">💤 @(SortIndicator("noresponse"))</th>
<th @onclick="() => SortBy("waitlist")" style="cursor:pointer;text-align:center;">⏳ @(SortIndicator("waitlist"))</th>
<th @onclick="() => SortBy("rate")" style="cursor:pointer;text-align:center;">% @(SortIndicator("rate"))</th>
<th @onclick="() => SortBy("cancelled")" style="cursor:pointer;text-align:center;">🚫 @(SortIndicator("cancelled"))</th>
<th @onclick="@(() => SortBy("player"))" style="cursor:pointer;" class="sortable">Игрок @(sortColumn == "player" ? (sortDesc ? "▼" : "▲") : "")</th>
<th @onclick="@(() => SortBy("total"))" style="cursor:pointer; text-align:center;" class="sortable">Всего @(sortColumn == "total" ? (sortDesc ? "▼" : "▲") : "")</th>
<th @onclick="@(() => SortBy("confirmed"))" style="cursor:pointer; text-align:center;" class="sortable">✅ @(sortColumn == "confirmed" ? (sortDesc ? "▼" : "▲") : "")</th>
<th @onclick="@(() => SortBy("declined"))" style="cursor:pointer; text-align:center;" class="sortable">❌ @(sortColumn == "declined" ? (sortDesc ? "▼" : "▲") : "")</th>
<th @onclick="@(() => SortBy("noresponse"))" style="cursor:pointer; text-align:center;" class="sortable">💤 @(sortColumn == "noresponse" ? (sortDesc ? "▼" : "▲") : "")</th>
<th @onclick="@(() => SortBy("waitlist"))" style="cursor:pointer; text-align:center;" class="sortable">⏳ @(sortColumn == "waitlist" ? (sortDesc ? "▼" : "▲") : "")</th>
<th @onclick="@(() => SortBy("rate"))" style="cursor:pointer; text-align:center;" class="sortable">% @(sortColumn == "rate" ? (sortDesc ? "▼" : "▲") : "")</th>
<th @onclick="@(() => SortBy("cancelled"))" style="cursor:pointer; text-align:center;" class="sortable">🚫 @(sortColumn == "cancelled" ? (sortDesc ? "▼" : "▲") : "")</th>
</tr>
</thead>
<tbody>