Browse Source

try to fix the detailed view

andre 4 years ago
parent
commit
9767d9ac2c

+ 0 - 23
app/UI/VmUpdate/Providers/VmUpdateProvider.php

@@ -63,18 +63,6 @@ class VmUpdateProvider extends VmCreateProvider
         $this->data['ipv4'] = $this->vmModel->ipv4Addresses->count();
         $this->data['ipv6'] = $this->vmModel->ipv6Addresses->count();
          */
-        //Boot order
-        if($vm instanceof Kvm){
-            $bootOrder                           = $vm->getBootOrder();
-            $this->data['bootDevice']            = $bootOrder[0];
-            $options                             = [
-                0   => sl("lang")->tr("None"),
-                "scsi0" => sl("lang")->tr("Disk"),
-                "ide2" => sl("lang")->tr("CD-ROM"),
-                "net0" => sl("lang")->tr("Network"),
-            ];
-            $this->availableValues['bootDevice'] = $options;
-        }
         //sshkeys
         $this->data['sshkeys'] = rawurldecode($vm->config()['sshkeys']);
         //cpu Priority
@@ -140,17 +128,6 @@ class VmUpdateProvider extends VmCreateProvider
             {
                 $vm->updateCdrom($this->formData['iso']);
             }
-            //Boot Device
-            //order=scsi0;ide0;ide1;net0
-            logModuleCall(
-                'proxmoxCloud',
-                __FUNCTION__,
-                $this->formData,
-                'Debug',
-                $this->data
-            );
-    
-            $vm->updateConfig(['boot' => 'order=' . $this->formData['bootDevice']]);
             //sshkeys
             if($this->configuration()->isPermissionSshkeys()){
                 if ($this->formData['sshkeys'])

+ 0 - 4
app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

@@ -159,9 +159,5 @@ class GeneralSection extends BaseSection
             $field->setDescription('description');
             $this->addField($field);
         }
-        //boot device 1
-        $field = new Select("bootDevice");
-        $field->notEmpty();
-        $this->addField($field);
     }
 }