mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 04:04:45 +02:00
Add missing disabled
in AllocationsRelationManager
(#1304)
This commit is contained in:
parent
98a2cab5ca
commit
329a29f7da
@ -70,6 +70,7 @@ class AllocationsRelationManager extends RelationManager
|
|||||||
->label(trans('admin/server.ip_address'))
|
->label(trans('admin/server.ip_address'))
|
||||||
->inlineLabel()
|
->inlineLabel()
|
||||||
->ipv4()
|
->ipv4()
|
||||||
|
->live()
|
||||||
->afterStateUpdated(fn (Set $set) => $set('allocation_ports', []))
|
->afterStateUpdated(fn (Set $set) => $set('allocation_ports', []))
|
||||||
->required(),
|
->required(),
|
||||||
TextInput::make('allocation_alias')
|
TextInput::make('allocation_alias')
|
||||||
@ -83,6 +84,7 @@ class AllocationsRelationManager extends RelationManager
|
|||||||
->label(trans('admin/server.ports'))
|
->label(trans('admin/server.ports'))
|
||||||
->inlineLabel()
|
->inlineLabel()
|
||||||
->live()
|
->live()
|
||||||
|
->disabled(fn (Get $get) => empty($get('allocation_ip')))
|
||||||
->afterStateUpdated(fn ($state, Set $set, Get $get) => $set('allocation_ports',
|
->afterStateUpdated(fn ($state, Set $set, Get $get) => $set('allocation_ports',
|
||||||
CreateServer::retrieveValidPorts($this->getOwnerRecord()->node, $state, $get('allocation_ip')))
|
CreateServer::retrieveValidPorts($this->getOwnerRecord()->node, $state, $get('allocation_ip')))
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user