summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/views')
-rw-r--r--src/views/Fans/StaticInformation/FansStaticPage.vue19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/views/Fans/StaticInformation/FansStaticPage.vue b/src/views/Fans/StaticInformation/FansStaticPage.vue
index ba312384..56a5c183 100644
--- a/src/views/Fans/StaticInformation/FansStaticPage.vue
+++ b/src/views/Fans/StaticInformation/FansStaticPage.vue
@@ -30,7 +30,7 @@
</div>
</template>
<template #cell(currentValue)="data">
- {{ data.value }} {{ data.item.units }}
+ {{ data.value }}
</template>
</b-table>
</page-section>
@@ -115,7 +115,22 @@ export default {
computed: {
allSensors() {
- return this.$store.getters['sensors/sensors'];
+ let sensors = this.$store.getters['sensors/sensors'];
+ if (this.isSensorsExist) {
+ sensors.forEach((sensor) => {
+ sensor.type = sensor.name.toLowerCase().includes('cpu')
+ ? this.$t('tablesDescription.cpu')
+ : this.$t('tablesDescription.system');
+ });
+ }
+ return sensors;
+ },
+
+ isSensorsExist() {
+ return (
+ this.$store.getters['sensors/sensors'] &&
+ this.$store.getters['sensors/sensors'].length > 0
+ );
},
filteredSensors() {