diff options
Diffstat (limited to 'src/store/modules/HardwareStatus/MemoryStore.js')
-rw-r--r-- | src/store/modules/HardwareStatus/MemoryStore.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/store/modules/HardwareStatus/MemoryStore.js b/src/store/modules/HardwareStatus/MemoryStore.js index ae30752d..21e07598 100644 --- a/src/store/modules/HardwareStatus/MemoryStore.js +++ b/src/store/modules/HardwareStatus/MemoryStore.js @@ -70,7 +70,7 @@ const MemoryStore = { }, }, actions: { - async patchLimits({ dispatch }, { warning, groups }) { + async patchLimits({ dispatch }, { warning, critical, groups }) { return await api .patch('/redfish/v1/Chassis/SILA_Baseboard/Thermal', { Temperatures: groups.map((group) => { @@ -80,6 +80,16 @@ const MemoryStore = { }; }), }) + .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('pageMemory.toast.errorLimitUpdate')); |