From 5494112d167c793211928ea9652dea9b445237c4 Mon Sep 17 00:00:00 2001 From: Gunnar Mills Date: Mon, 27 Jul 2020 13:22:05 -0500 Subject: Immediate Reboot: Move to ForceRestart ResetType ForceRestart was recently added. Use it for immediate reboot. This allows the GUI to make only one call. Change-Id: I2a5f59d651c0e17cb6c3655e0e93250a031f89c2 Signed-off-by: Gunnar Mills --- src/store/modules/Control/ControlStore.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/store') diff --git a/src/store/modules/Control/ControlStore.js b/src/store/modules/Control/ControlStore.js index 6f9ced43..f88f2aa7 100644 --- a/src/store/modules/Control/ControlStore.js +++ b/src/store/modules/Control/ControlStore.js @@ -64,11 +64,8 @@ const ControlStore = { commit('setOperationInProgress', false); }, async hostHardReboot({ dispatch, commit }) { - // TODO: Update when ForceWarmReboot property - // available - dispatch('hostPowerChange', { ResetType: 'ForceOff' }); - await checkForHostStatus.bind(this, 'off')(); - dispatch('hostPowerChange', { ResetType: 'On' }); + const data = { ResetType: 'ForceRestart' }; + dispatch('hostPowerChange', data); await checkForHostStatus.bind(this, 'on')(); commit('setOperationInProgress', false); }, -- cgit v1.2.3