DaanHoogland commented on code in PR #8429:
URL: https://github.com/apache/cloudstack/pull/8429#discussion_r1440155528


##########
ui/src/views/tools/ImportUnmanagedInstance.vue:
##########
@@ -111,7 +111,7 @@
                   </a-select-option>
                 </a-select>
               </a-form-item>
-              <a-form-item name="templateid" ref="templateid" 
v-if="cluster.hypervisortype === 'KVM' && !selectedVmwareVcenter && 
!isDiskImport && !isExternalImport">
+              <a-form-item name="templateid" ref="templateid" 
v-if="cluster.hypervisortype === 'VMware' || (cluster.hypervisortype === 'KVM' 
&& !selectedVmwareVcenter && !isDiskImport && !isExternalImport)">

Review Comment:
   this can be some kind of `[].contains()` structure, right?
   ```suggestion
                 <a-form-item name="templateid" ref="templateid" 
v-if="['VMware', 'KVM'].contains(cluster.hypervisortype) && 
!selectedVmwareVcenter && !isDiskImport && !isExternalImport)">
   ```
   ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to