Enhance Proxmox components with input validation, error handling, and UI improvements

This commit is contained in:
2026-02-25 07:00:55 -05:00
parent 16cd5f05de
commit 8494f87aae
19 changed files with 182 additions and 64 deletions

View File

@@ -1059,7 +1059,7 @@ class Storage extends Component
// Find unused disks and delete the one we just detached
foreach ($config as $key => $value) {
if (str_starts_with($key, 'unused') && str_contains($value, $this->drives[$driveKey]['volume'])) {
if (str_starts_with($key, 'unused') && trim($value) === $this->drives[$driveKey]['volume']) {
$proxmox->request(
'/nodes/' . $this->server->node->name . '/qemu/' . $this->server->vm_id . '/config',
'put',