Skip to content

Commit 357bb06

Browse files
shwstpprdhslove
authored andcommitted
ui: fix considerlasthost for start vm (apache#10602)
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 5387683 commit 357bb06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ui/src/config/section/compute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default {
130130
dataView: true,
131131
groupAction: true,
132132
popup: true,
133-
groupMap: (selection, values) => { return selection.map(x => { return { id: x, considerlasthost: values.considerlasthost } }) },
133+
groupMap: (selection, values) => { return selection.map(x => { return { id: x, considerlasthost: values.considerlasthost === true } }) },
134134
args: (record, store) => {
135135
if (['Admin'].includes(store.userInfo.roletype)) {
136136
return ['considerlasthost']

ui/src/views/compute/StartVirtualMachine.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export default {
243243
id: this.resource.id
244244
}
245245
for (const key in values) {
246-
if (values[key]) {
246+
if (values[key] || values[key] === false) {
247247
params[key] = values[key]
248248
}
249249
}

0 commit comments

Comments
 (0)