Merge branch 'main' of github.com:pelican-dev/panel

This commit is contained in:
Lance Pioch 2024-04-27 22:18:34 -04:00
commit a9b755ae2d
4 changed files with 4 additions and 3 deletions

View File

@ -97,7 +97,7 @@ class BackupManager
/** /**
* Creates a new daemon adapter. * Creates a new daemon adapter.
*/ */
public function createDaemonAdapter(array $config): FilesystemAdapter public function createWingsAdapter(array $config): FilesystemAdapter
{ {
return new InMemoryFilesystemAdapter(); return new InMemoryFilesystemAdapter();
} }

View File

@ -18,6 +18,7 @@ class ListNodes extends ListRecords
{ {
return $table return $table
->searchable(false) ->searchable(false)
->checkIfRecordIsSelectableUsing(fn (Node $node) => $node->servers_count <= 0)
->columns([ ->columns([
Tables\Columns\TextColumn::make('uuid') Tables\Columns\TextColumn::make('uuid')
->label('UUID') ->label('UUID')

View File

@ -31,7 +31,7 @@ class Backup extends Model
public const RESOURCE_NAME = 'backup'; public const RESOURCE_NAME = 'backup';
public const ADAPTER_DAEMON = 'daemon'; public const ADAPTER_DAEMON = 'wings';
public const ADAPTER_AWS_S3 = 's3'; public const ADAPTER_AWS_S3 = 's3';
protected $table = 'backups'; protected $table = 'backups';

View File

@ -34,7 +34,7 @@ return [
'disks' => [ 'disks' => [
// There is no configuration for the local disk for Daemon. That configuration // There is no configuration for the local disk for Daemon. That configuration
// is determined by the Daemon configuration, and not the Panel. // is determined by the Daemon configuration, and not the Panel.
'daemon' => [ 'wings' => [
'adapter' => Backup::ADAPTER_DAEMON, 'adapter' => Backup::ADAPTER_DAEMON,
], ],