Переглянути джерело

try to use slider for additional disk in createVM

andre 4 роки тому
батько
коміт
bfa0472db2
1 змінених файлів з 2 додано та 11 видалено
  1. 2 11
      app/UI/VmCreate/Sections/AdditionalDiskSection.php

+ 2 - 11
app/UI/VmCreate/Sections/AdditionalDiskSection.php

@@ -31,19 +31,10 @@ class AdditionalDiskSection extends BaseSection implements ClientArea
     {
     {
         //size
         //size
         $this->resourceManager = new ResourceManager();
         $this->resourceManager = new ResourceManager();
-        $field = new Range('additionalDiskSize', $this->configuration()->serverDiskSize->min, $this->resourceManager->disk()->free());
-        $field->addValidator(new DiskSizeValidator('additionalDiskSize',true));
+        $field = new Range('additionalDiskSize1', $this->configuration()->serverDiskSize->min, $this->resourceManager->disk()->free());
+        $field->addValidator(new DiskSizeValidator('additionalDiskSize1',true));
         $field->setDefaultValue($this->configuration()->serverDiskSize->min);
         $field->setDefaultValue($this->configuration()->serverDiskSize->min);
         $field->setDescription('description');
         $field->setDescription('description');
-
-        logModuleCall(
-            'proxmoxCloud',
-            __FUNCTION__,
-            $field,
-            'Debug',
-            $field->getId()
-        );
-
 //        $field->replaceClasses(['lu-col-md-6']);
 //        $field->replaceClasses(['lu-col-md-6']);
         $this->addField($field);
         $this->addField($field);
         //bus
         //bus