summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVitalii Lysak <v.lysak@dunice.net>2022-07-04 10:49:11 +0300
committerVitalii Lysak <v.lysak@dunice.net>2022-07-04 10:49:11 +0300
commita1609142e4f59a1e731ab6472792d3cfe6014f40 (patch)
tree7cafee26e71162e2c3d330dbf3a15a31dd69cc74 /src
parente566e7aa1974b43174f1e8b2be0f9a8128b60881 (diff)
downloadwebui-vue-a1609142e4f59a1e731ab6472792d3cfe6014f40.tar.xz
fixs for sensors
Diffstat (limited to 'src')
-rw-r--r--src/locales/ru-RU.json12
-rw-r--r--src/views/Fans/StaticInformation/FansStaticPage.vue19
2 files changed, 23 insertions, 8 deletions
diff --git a/src/locales/ru-RU.json b/src/locales/ru-RU.json
index 75ff4c1b..6a9f7d50 100644
--- a/src/locales/ru-RU.json
+++ b/src/locales/ru-RU.json
@@ -41,9 +41,9 @@
},
"date": {
"lastHour": "Последний час",
- "lastDay": "Последние сутки",
+ "lastDay": "Последние сутки",
"lastWeek": "Последняя неделя",
- "lastMounth": "Последний месяц",
+ "lastMounth": "Последний месяц",
"lastYear": "Последний год",
"selectDate": "Выбрать период"
},
@@ -179,7 +179,7 @@
"ethernetAdapters": "Ethetnet-адаптеры",
"fcHbaAdapters": "FC-HBA-адаптеры",
"pciDevices": "PCI-устройства",
-
+
"resourceManagement": "Управление ресурсами",
"securityAndAccess": "Безопасность и доступ",
"sessions": "@:appPageTitle.sessions",
@@ -210,7 +210,7 @@
"description": {
"configuration": "Конфигурация"
}
- },
+ },
"appPageTitle": {
"changePassword": "Изменить пароль",
@@ -593,7 +593,6 @@
"upload": "Начать загрузку",
"urlAdress": "URL-адрес сервера",
"connectionType": "Тип подключения"
-
},
"pageLdap": {
"pageDescription": "Настройка параметров LDAP и управление группами",
@@ -1140,7 +1139,8 @@
"outputPower": "Выходная мощность",
"voltageWarning": "Пороговое значение предупреждения, B",
"voltageShutdown": "Пороговое значениe отказа, B",
- "amperage": "Сила тока"
+ "cpu": "Процессор",
+ "system": "Системная плата"
},
"RAID": {
"cache": "Cache RAID-контроллеров",
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() {