This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 22b753e9302 [UI] Deploy VM: Preselect first available template (#11207)
22b753e9302 is described below
commit 22b753e93028c6da43b4d316c743a229796f4b12
Author: Nicolas Vazquez <[email protected]>
AuthorDate: Thu Jul 24 07:18:07 2025 -0300
[UI] Deploy VM: Preselect first available template (#11207)
---
ui/src/views/compute/wizard/OsBasedImageRadioGroup.vue | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/ui/src/views/compute/wizard/OsBasedImageRadioGroup.vue
b/ui/src/views/compute/wizard/OsBasedImageRadioGroup.vue
index 3d84cf342ad..2518ed0c042 100644
--- a/ui/src/views/compute/wizard/OsBasedImageRadioGroup.vue
+++ b/ui/src/views/compute/wizard/OsBasedImageRadioGroup.vue
@@ -145,6 +145,11 @@ export default {
selected (newVal, oldVal) {
if (newVal === oldVal) return
this.onSelectTemplateIso()
+ },
+ imagesList () {
+ if (this.value === '' && this.imagesList && this.imagesList.length > 0) {
+ this.onClickRow(this.imagesList[0])
+ }
}
},
emits: ['emit-update-image', 'handle-search-filter'],