diff --git a/app/Extensions/Backups/BackupManager.php b/app/Extensions/Backups/BackupManager.php index 8cf817513..ad1cfdbbc 100644 --- a/app/Extensions/Backups/BackupManager.php +++ b/app/Extensions/Backups/BackupManager.php @@ -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(); } diff --git a/app/Filament/Resources/NodeResource/Pages/ListNodes.php b/app/Filament/Resources/NodeResource/Pages/ListNodes.php index 48f8446c5..4a30e8e65 100644 --- a/app/Filament/Resources/NodeResource/Pages/ListNodes.php +++ b/app/Filament/Resources/NodeResource/Pages/ListNodes.php @@ -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') diff --git a/app/Models/Backup.php b/app/Models/Backup.php index f83e46e06..3f2a931d1 100644 --- a/app/Models/Backup.php +++ b/app/Models/Backup.php @@ -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'; diff --git a/config/backups.php b/config/backups.php index ef31e176d..0074bf8d7 100644 --- a/config/backups.php +++ b/config/backups.php @@ -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, ],