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.
*/
public function createDaemonAdapter(array $config): FilesystemAdapter
public function createWingsAdapter(array $config): FilesystemAdapter
{
return new InMemoryFilesystemAdapter();
}

View File

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

View File

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

View File

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