fix(my-joy-beta): enable reboot quick action button
This commit is contained in:
parent
8701aaebda
commit
3db639d2a9
@ -222,7 +222,8 @@ export default compose(
|
|||||||
|
|
||||||
const allowedActions = {
|
const allowedActions = {
|
||||||
start: selected.some(({ state }) => state !== 'RUNNING'),
|
start: selected.some(({ state }) => state !== 'RUNNING'),
|
||||||
stop: selected.some(({ state }) => state === 'RUNNING')
|
stop: selected.some(({ state }) => state === 'RUNNING'),
|
||||||
|
reboot: selected.some(({ state }) => (['RUNNING', 'STOPPED'].indexOf(state) >= 0))
|
||||||
};
|
};
|
||||||
|
|
||||||
// get mutating statuses
|
// get mutating statuses
|
||||||
|
Loading…
Reference in New Issue
Block a user