Skip to content

Commit 05c907b

Browse files
authored
ui: Allow editing VM and template settings (#6262)
1 parent a1fb44e commit 05c907b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ui/src/components/view/DetailSettings.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<a-auto-complete
7474
style="width: 100%"
7575
v-model:value="item.value"
76-
:options="detailOptions[item.name]"
76+
:options="getDetailOptions(detailOptions[item.name])"
7777
@change="val => handleInputChange(val, index)"
7878
@pressEnter="e => updateDetail(index)" />
7979
<tooltip-button
@@ -224,6 +224,13 @@ export default {
224224
handleInputChange (val, index) {
225225
this.details[index].value = val
226226
},
227+
getDetailOptions (values) {
228+
if (!values) {
229+
return
230+
}
231+
var data = values.map(value => { return { value: value } })
232+
return data
233+
},
227234
onAddInputChange (val, obj) {
228235
this.error = false
229236
this[obj] = val

0 commit comments

Comments
 (0)