Browse Source

try to fix the detailed view

andre 4 years ago
parent
commit
3108c35201

+ 2 - 1
app/UI/VmUpdate/Forms/VmUpdateForm.php

@@ -11,6 +11,7 @@ use ModulesGarden\Servers\ProxmoxCloudVps\App\UI\VmUpdate\Sections\VirtualNetwor
 use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Interfaces\ClientArea;
 use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Forms\BaseStandaloneFormExtSections;
 use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Forms\Sections\HalfPageSection;
+use ModulesGarden\Servers\ProxmoxCloudVps\App\UI\Disk\Pages\DiskDataTable;
 
 class VmUpdateForm extends  BaseStandaloneFormExtSections implements ClientArea
 {
@@ -42,7 +43,7 @@ class VmUpdateForm extends  BaseStandaloneFormExtSections implements ClientArea
             if($this->configuration()->isQemu()){
                 $this->addSection((new Qemu\GeneralCombinedSection())->setMainContainer($this->mainContainer));
                 //disk
-                $rightSection->addSection((new Qemu\AdditionalDiskSection())->setMainContainer($this->mainContainer));
+                $rightSection->addSection((new DiskDataTable())->setMainContainer($this->mainContainer));
             }
             //lxc
             if($this->configuration()->isLxc()){

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

@@ -122,13 +122,6 @@ class GeneralSection extends BaseSection
         $field->setDefaultValue($this->configuration()->serverMemory->min);
         $field->setDescription('description');
         $this->addField($field);
-        if($this->configuration()->isDetailsCombinedView()){
-            //disk
-            $field = new Text('disk');
-            $field->addValidator(new NumberValidator($this->resourceManager->disk()->getMin(), $this->resourceManager->disk()->free(),true));
-            $field->setDescription('description');
-            $this->addField($field);
-        }
         /**
          * @deprecated
         //ipv4