refactor(resource-operations): filter out build servers from the server list and clean up commented-out code in the resource operations view

This commit is contained in:
Andras Bacsai
2025-06-13 16:49:27 +02:00
parent ac66e857c9
commit 581151bb11
2 changed files with 12 additions and 61 deletions

View File

@@ -35,7 +35,7 @@ class ResourceOperations extends Component
$this->projectUuid = data_get($parameters, 'project_uuid');
$this->environmentUuid = data_get($parameters, 'environment_uuid');
$this->projects = Project::ownedByCurrentTeam()->get();
$this->servers = currentTeam()->servers;
$this->servers = currentTeam()->servers->filter(fn ($server) => ! $server->isBuildServer());
}
public function toggleVolumeCloning(bool $value)