Skip to content

Commit 22b753e

Browse files
authored
[UI] Deploy VM: Preselect first available template (#11207)
1 parent 83bccea commit 22b753e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ui/src/views/compute/wizard/OsBasedImageRadioGroup.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ export default {
145145
selected (newVal, oldVal) {
146146
if (newVal === oldVal) return
147147
this.onSelectTemplateIso()
148+
},
149+
imagesList () {
150+
if (this.value === '' && this.imagesList && this.imagesList.length > 0) {
151+
this.onClickRow(this.imagesList[0])
152+
}
148153
}
149154
},
150155
emits: ['emit-update-image', 'handle-search-filter'],

0 commit comments

Comments
 (0)