summaryrefslogtreecommitdiff
path: root/src/store/modules/HardwareStatus
diff options
context:
space:
mode:
authorVitalii Lysak <v.lysak@dunice.net>2022-08-30 10:29:09 +0300
committerVitalii Lysak <v.lysak@dunice.net>2022-08-30 10:29:09 +0300
commit0444ab4658743504ddf12ddf911158aebf9037ae (patch)
tree137a99ea1286de38ab0670d61f4a284dbbd0b94b /src/store/modules/HardwareStatus
parentdc6694fc5801f0cf7d81b07380c043a1672e34e6 (diff)
downloadwebui-vue-0444ab4658743504ddf12ddf911158aebf9037ae.tar.xz
upd power, dynamic
Diffstat (limited to 'src/store/modules/HardwareStatus')
-rw-r--r--src/store/modules/HardwareStatus/PowerSupplyStore.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/store/modules/HardwareStatus/PowerSupplyStore.js b/src/store/modules/HardwareStatus/PowerSupplyStore.js
index e70d8dd0..7ff2909d 100644
--- a/src/store/modules/HardwareStatus/PowerSupplyStore.js
+++ b/src/store/modules/HardwareStatus/PowerSupplyStore.js
@@ -15,6 +15,7 @@ const PowerSupplyStore = {
powerSupplies: [],
limitsTemp: [],
limitsVol: [],
+ isLoadingVol: false,
},
getters: {
powerSupplies: (state) => state.powerSupplies,
@@ -28,6 +29,7 @@ const PowerSupplyStore = {
psuCurrentLastHour: (state) => state.psuCurrentLastHour,
limitsTemp: (state) => state.limitsTemp,
limitsVol: (state) => state.limitsVol,
+ isLoadingVol: (state) => state.isLoadingVol,
},
mutations: {
setPowerSupply: (state, data) => {
@@ -95,6 +97,9 @@ const PowerSupplyStore = {
setLimitsVol: (state, data) => {
state.limitsVol = data;
},
+ setIsLoadingVol: (state, data) => {
+ state.isLoadingVol = data;
+ },
},
actions: {
async patchLimitsTemp({ dispatch }, { warning, critical, groups }) {