From 3db639d2a944e30f4cd6d16d2c03a0f88d4552c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Wed, 3 Jan 2018 15:18:34 +0000 Subject: [PATCH] fix(my-joy-beta): enable reboot quick action button --- packages/my-joy-beta/src/containers/instances/list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/my-joy-beta/src/containers/instances/list.js b/packages/my-joy-beta/src/containers/instances/list.js index 350f8028..2455fe27 100644 --- a/packages/my-joy-beta/src/containers/instances/list.js +++ b/packages/my-joy-beta/src/containers/instances/list.js @@ -222,7 +222,8 @@ export default compose( const allowedActions = { 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