diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-17 17:01:42 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-17 17:01:42 +0300 |
commit | c1407327f732565819d73fe6b8fbf50c3871e500 (patch) | |
tree | 66b212c91a44b79e9644e765a066dc8c1a8ebb70 /src/store/modules/HardwareStatus/ProcessorStore.js | |
parent | f5cb8a417cc7c2c4a184f6b08dc3516d7685a2ff (diff) | |
download | webui-vue-c1407327f732565819d73fe6b8fbf50c3871e500.tar.xz |
SILABMC-256: critical req upd
Diffstat (limited to 'src/store/modules/HardwareStatus/ProcessorStore.js')
-rw-r--r-- | src/store/modules/HardwareStatus/ProcessorStore.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/store/modules/HardwareStatus/ProcessorStore.js b/src/store/modules/HardwareStatus/ProcessorStore.js index 9dede45e..e270ed12 100644 --- a/src/store/modules/HardwareStatus/ProcessorStore.js +++ b/src/store/modules/HardwareStatus/ProcessorStore.js @@ -86,7 +86,7 @@ const ProcessorStore = { }, }, actions: { - async patchLimitsTemp({ dispatch }, { warning, groups }) { + async patchLimitsTemp({ dispatch }, { warning, critical, groups }) { return await api .patch('/redfish/v1/Chassis/SILA_Baseboard/Thermal', { Temperatures: groups.map((group) => { @@ -96,6 +96,16 @@ const ProcessorStore = { }; }), }) + .then(async () => { + return await api.patch('/redfish/v1/Chassis/SILA_Baseboard/Thermal', { + Temperatures: groups.map((group) => { + return { + MemberId: group, + UpperThresholdCritical: critical, + }; + }), + }); + }) .catch((error) => { console.log(error); throw new Error(i18n.t('pageProcessor.toast.errorLimitUpdate')); |