From 6e7a830c81f0c68d7a5fade6e427a62fe2fb38ea Mon Sep 17 00:00:00 2001 From: Thomas David Baker Date: Tue, 26 Nov 2024 11:52:57 -0800 Subject: [PATCH] Fix a typo preventing the match filter form from showing for player matches --- gatherling/Views/Components/AllMatchForm.php | 4 ++-- gatherling/templates/partials/playerMatches.mustache | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gatherling/Views/Components/AllMatchForm.php b/gatherling/Views/Components/AllMatchForm.php index ab05a3a29..a3852ab4a 100644 --- a/gatherling/Views/Components/AllMatchForm.php +++ b/gatherling/Views/Components/AllMatchForm.php @@ -11,7 +11,7 @@ class AllMatchForm extends Component public DropMenu $formatDropMenuP; public DropMenu $seriesDropMenuP; public DropMenu $seasonDropMenuP; - public DropMenu $oppDropMenu; + public DropMenu $oppDropMenuP; public function __construct(Player $player, string $selectedFormat, string $selectedSeries, string $selectedSeason, string $selectedOpponent) { @@ -19,7 +19,7 @@ public function __construct(Player $player, string $selectedFormat, string $sele $this->seriesDropMenuP = selector(opts($player->getSeriesPlayed()), 'series', '-- Series --', $selectedSeries ? $selectedSeries : '%'); $this->seasonDropMenuP = selector(opts($player->getSeasonsPlayed()), 'season', '-- Season --', $selectedSeason ? $selectedSeason : '%'); $opts = array_map(fn (array $item) => ['value' => $item['opp'], 'text' => $item['opp'] . ' [' . $item['cnt'] . ']'], $player->getOpponents()); - $this->oppDropMenu = selector($opts, 'opp', '-- Opponent --', $selectedOpponent ? $selectedOpponent : '%'); + $this->oppDropMenuP= selector($opts, 'opp', '-- Opponent --', $selectedOpponent ? $selectedOpponent : '%'); } } diff --git a/gatherling/templates/partials/playerMatches.mustache b/gatherling/templates/partials/playerMatches.mustache index 3ba58a054..3c712c56f 100644 --- a/gatherling/templates/partials/playerMatches.mustache +++ b/gatherling/templates/partials/playerMatches.mustache @@ -1,6 +1,6 @@ -{{#playerMatchForm}} - {{> playerMatchForm}} -{{/playerMatchForm}} +{{#allMatchForm}} + {{> allMatchForm}} +{{/allMatchForm}} {{#matchTable}} {{> matchTable}}