Browse Source

debug additional slider

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

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

@@ -125,19 +125,12 @@ class GeneralSection extends BaseSection
         $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 = new Range('disk', $vm->getMasterHddSize(), $this->resourceManager->disk()->free());
+            $field->addValidator(new NumberValidator($vm->getMasterHddSize(), $this->resourceManager->disk()->free(),true));
+            $field->setDefaultValue($vm->getMasterHddSize());
             $field->setDescription('description');
+            $field->addHtmlAttribute('@change','submitFormByField($event)');
             $this->addField($field);
-
-            logModuleCall(
-                'proxmoxCloud',
-                __FUNCTION__,
-                $field,
-                'Debug',
-                $vm->getMasterHddSize()
-            );
-
         }
         /**
          * @deprecated