summaryrefslogtreecommitdiff
path: root/src/store/modules/HardwareStatus/ProcessorStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/modules/HardwareStatus/ProcessorStore.js')
-rw-r--r--src/store/modules/HardwareStatus/ProcessorStore.js12
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'));