diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2020-07-27 21:22:05 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2020-07-30 03:16:09 +0300 |
commit | 5494112d167c793211928ea9652dea9b445237c4 (patch) | |
tree | 52c0fa69dd1af6d14016280433b3678719d75a44 /src/store | |
parent | 471f2e077a8e664ba96900c2464d46331808e0c2 (diff) | |
download | webui-vue-5494112d167c793211928ea9652dea9b445237c4.tar.xz |
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 <gmills@us.ibm.com>
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/modules/Control/ControlStore.js | 7 |
1 files changed, 2 insertions, 5 deletions
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); }, |