feat: refactor VM add/edit forms to include vCenter selection, host component, and new VM information fields.
This commit is contained in:
@@ -10,6 +10,8 @@ if (!$selectedDatacenterId && $model) {
|
||||
$selectedDatacenterId = $model->host?->module_datacenter_id;
|
||||
} elseif ($model instanceof \App\Models\ModuleIpAddress) {
|
||||
$selectedDatacenterId = $model->host?->module_datacenter_id;
|
||||
} elseif ($model instanceof \App\Models\VirtualMachines) {
|
||||
$selectedDatacenterId = $model->datacenter_id;
|
||||
} elseif (isset($model->module_datacenter_id)) {
|
||||
$selectedDatacenterId = $model->module_datacenter_id;
|
||||
} elseif (method_exists($model, 'host') && $model->host) {
|
||||
|
||||
Reference in New Issue
Block a user