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