mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
ui: fix considerlasthost for start vm (#10602)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
6c40a7bebb
commit
c1ff799df2
@ -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']
|
||||||
|
|||||||
@ -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]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user