ui: fix considerlasthost for start vm (#10602)

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2025-03-24 17:02:25 +05:30 committed by GitHub
parent 6c40a7bebb
commit c1ff799df2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ export default {
dataView: true, dataView: true,
groupAction: true, groupAction: true,
popup: true, popup: true,
groupMap: (selection, values) => { return selection.map(x => { return { id: x, considerlasthost: values.considerlasthost } }) }, groupMap: (selection, values) => { return selection.map(x => { return { id: x, considerlasthost: values.considerlasthost === true } }) },
args: (record, store) => { args: (record, store) => {
if (['Admin'].includes(store.userInfo.roletype)) { if (['Admin'].includes(store.userInfo.roletype)) {
return ['considerlasthost'] return ['considerlasthost']

View File

@ -237,7 +237,7 @@ export default {
id: this.resource.id id: this.resource.id
} }
for (const key in values) { for (const key in values) {
if (values[key]) { if (values[key] || values[key] === false) {
params[key] = values[key] params[key] = values[key]
} }
} }