fix(my-joy-beta): enable reboot quick action button

This commit is contained in:
Sérgio Ramos 2018-01-03 15:18:34 +00:00 committed by Sérgio Ramos
parent 8701aaebda
commit 3db639d2a9

View File

@ -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