mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
stan
This commit is contained in:
@@ -46,10 +46,10 @@ class ImportServerConfigAction extends Action
|
||||
Select::make('node_id')
|
||||
->label(trans('admin/server.import_export.node_select'))
|
||||
->hint(trans('admin/server.import_export.node_select_hint'))
|
||||
->options(fn () => user()->accessibleNodes()->pluck('name', 'id') ?? [])
|
||||
->options(fn () => user()?->accessibleNodes()->pluck('name', 'id') ?? [])
|
||||
->searchable()
|
||||
->required()
|
||||
->visible(fn () => (user()->accessibleNodes()->count() ?? 0) > 1),
|
||||
->visible(fn () => (user()?->accessibleNodes()->count() ?? 0) > 1),
|
||||
]);
|
||||
|
||||
$this->action(function (ServerConfigCreatorService $createService, array $data): void {
|
||||
|
||||
Reference in New Issue
Block a user