mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 15:34:44 +02:00
Update app/Filament/Resources/ServerResource/Pages/ListServers.php
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
This commit is contained in:
parent
45b73debc2
commit
6a8ff1a186
@ -67,7 +67,7 @@ class ListServers extends ListRecords
|
|||||||
->options(fn (Server $server) => $server->allocations->mapWithKeys(fn ($allocation) => [$allocation->id => $allocation->address]))
|
->options(fn (Server $server) => $server->allocations->mapWithKeys(fn ($allocation) => [$allocation->id => $allocation->address]))
|
||||||
->selectablePlaceholder(false)
|
->selectablePlaceholder(false)
|
||||||
->sortable(),
|
->sortable(),
|
||||||
TextColumn::make('allocation_id_can')
|
TextColumn::make('allocation_id_readonly')
|
||||||
->label('Primary Allocation')
|
->label('Primary Allocation')
|
||||||
->hidden(auth()->user()->can('update server'))
|
->hidden(auth()->user()->can('update server'))
|
||||||
->state(fn (Server $server) => $server->allocation->address),
|
->state(fn (Server $server) => $server->allocation->address),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user