[UI] Fix group disable action for compute and disk offering (#11602)

This commit is contained in:
Manoj Kumar 2025-09-15 15:27:59 +05:30 committed by GitHub
parent 6a145358a9
commit 1948f90c2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -136,7 +136,7 @@ export default {
} }
}, },
show: (record) => { return record.state === 'Active' }, show: (record) => { return record.state === 'Active' },
groupMap: (selection) => { return selection.map(x => { return { id: x } }) } groupMap: (selection) => { return selection.map(x => { return { id: x, state: 'Inactive' } }) }
}] }]
}, },
{ {
@ -218,7 +218,7 @@ export default {
} }
}, },
show: (record) => { return record.state === 'Active' }, show: (record) => { return record.state === 'Active' },
groupMap: (selection) => { return selection.map(x => { return { id: x } }) } groupMap: (selection) => { return selection.map(x => { return { id: x, state: 'Inactive' } }) }
}] }]
}, },
{ {
@ -325,7 +325,7 @@ export default {
} }
}, },
show: (record) => { return record.state === 'Active' }, show: (record) => { return record.state === 'Active' },
groupMap: (selection) => { return selection.map(x => { return { id: x } }) } groupMap: (selection) => { return selection.map(x => { return { id: x, state: 'Inactive' } }) }
}] }]
}, },
{ {