feat: allow mappool visibility in finished matches; enhance mappool name link in match details

This commit is contained in:
2026-03-01 18:38:05 +01:00
parent 08a9544f64
commit 47c17b6904

View File

@@ -39,7 +39,7 @@
// Should the mappool be visible?
const showMappool = $derived(
['PICKING', 'PLAYING', 'ROLLING'].includes(m.state)
['PICKING', 'PLAYING', 'ROLLING', 'FINISHED'].includes(m.state)
);
// Can picks actually be made right now?
@@ -173,7 +173,7 @@
<p class="mt-0.5 text-xs text-text-secondary">
Best of {config.bestOf} &middot; First to {winsNeeded}
{#if m.mappool}
&middot; {m.mappool.name}{mappoolAvgSR() ? ` · avg ★${mappoolAvgSR()}` : ''}
&middot; <a href="/mappools/{m.mappool.id}" class="hover:text-accent hover:underline">{m.mappool.name}</a>{mappoolAvgSR() ? ` · avg ★${mappoolAvgSR()}` : ''}
{/if}
{#if duration}
&middot; {duration}