Skip to content

Commit ca5fcf1

Browse files
committed
disable query type for fivem/redm for new
see #48
1 parent 059add9 commit ca5fcf1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

player-counter/src/Filament/Admin/Resources/GameQueries/GameQueryResource.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public static function form(Schema $schema): Schema
7777
->label(trans('player-counter::query.type'))
7878
->required()
7979
->options(GameQueryType::class)
80+
->disableOptionWhen(fn (string $value) => $value === GameQueryType::FiveMRedM->value) // see https://github.com/pelican-dev/plugins/issues/48
8081
->selectablePlaceholder(false)
8182
->preload()
8283
->searchable(),

0 commit comments

Comments
 (0)