Browse Source

additional slider

andre 4 years ago
parent
commit
e1a6a09c01
1 changed files with 1 additions and 10 deletions
  1. 1 10
      app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

+ 1 - 10
app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

@@ -125,20 +125,11 @@ class GeneralSection extends BaseSection
         $this->addField($field);
         if($this->configuration()->isDetailsCombinedView()){
             //disk
-            $field = new Range('disk', $this->configuration()->serverDiskSize->min, $this->resourceManager->disk()->free());
+            $field = new Range('disk', $this->resourceManager->disk()->getUsed(), $this->resourceManager->disk()->free());
             $field->addValidator(new DiskSizeValidator('disk',true));
             $field->setDefaultValue($this->configuration()->serverDiskSize->min);
             $field->setDescription('description');
             $this->addField($field);
-
-            logModuleCall(
-                'proxmoxCloud',
-                __FUNCTION__,
-                $this->resourceManager->disk(),
-                'Debug',
-                $this->configuration()->serverDiskSize
-            );
-
         }
         /**
          * @deprecated