Browse Source

try hide bus option if exists only 1

andre 4 năm trước cách đây
mục cha
commit
935534b3dd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/UI/VmCreate/Sections/AdditionalDiskSection.php

+ 1 - 1
app/UI/VmCreate/Sections/AdditionalDiskSection.php

@@ -33,7 +33,7 @@ class AdditionalDiskSection extends BaseSection implements ClientArea
         $field->replaceClasses(['lu-col-md-6']);
         $this->addField($field);
         //bus
-        if($this->configuration()->isQemu()){
+        if($this->configuration()->isQemu() && $this->configuration()->getAdditionalDiskType()->count() > 1){
             $field = new Select('additionalDiskBus');
             $options=[];
             foreach( $this->configuration()->getAdditionalDiskType() as $entery){