Browse Source

debug additional slider

andre 4 years ago
parent
commit
75098e2daf
1 changed files with 2 additions and 3 deletions
  1. 2 3
      app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

+ 2 - 3
app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

@@ -125,9 +125,8 @@ class GeneralSection extends BaseSection
         $this->addField($field);
         if($this->configuration()->isDetailsCombinedView()){
             //disk
-            $field = new Range('disk', 0, $this->resourceManager->disk()->free());
-            $field->addValidator(new NumberValidator($vm->getMasterHddSize(), $this->resourceManager->disk()->free(),true));
-            $field->setDefaultValue($vm->getMasterHddSize());
+            $field = new Text('disk');
+            $field->addValidator(new NumberValidator($this->resourceManager->disk()->getMin(), $this->resourceManager->disk()->free(),true));
             $field->setDescription('description');
             $this->addField($field);