diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-27 12:14:05 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-27 12:14:05 +0300 |
commit | fde35052ff8854401b6d7359d1c1f7cc5a060051 (patch) | |
tree | b6aefde30bc6ec7b835cfef0dd12429c1e1f2948 /src/views/_sila/Processors | |
parent | 6f67757c75268bc54856008f437c3dc1c508bd18 (diff) | |
download | webui-vue-fde35052ff8854401b6d7359d1c1f7cc5a060051.tar.xz |
fx bugs
Diffstat (limited to 'src/views/_sila/Processors')
-rw-r--r-- | src/views/_sila/Processors/Dynamic/CpuPower.vue | 11 | ||||
-rw-r--r-- | src/views/_sila/Processors/Dynamic/CpuTemp.vue | 8 |
2 files changed, 14 insertions, 5 deletions
diff --git a/src/views/_sila/Processors/Dynamic/CpuPower.vue b/src/views/_sila/Processors/Dynamic/CpuPower.vue index dffea20f..a4fb753f 100644 --- a/src/views/_sila/Processors/Dynamic/CpuPower.vue +++ b/src/views/_sila/Processors/Dynamic/CpuPower.vue @@ -101,7 +101,6 @@ export default { return { warning: 66, shutdown: 88, - items: [], fields: [ { key: 'name', @@ -117,6 +116,10 @@ export default { }, computed: { + items() { + return getItems(this.filteredSensors); + }, + allSensors() { return this.$store.getters['processors/cpuPower']; }, @@ -134,8 +137,8 @@ export default { }, }, watch: { - filteredSensors(data) { - this.items = getItems(data); + timeScale() { + this.loadData(); }, }, @@ -147,7 +150,7 @@ export default { }, loadData() { - let payload = null; + let payload = { lastHour: false }; if (this.timeScale === 'hour') { payload = { lastHour: true }; } diff --git a/src/views/_sila/Processors/Dynamic/CpuTemp.vue b/src/views/_sila/Processors/Dynamic/CpuTemp.vue index 115506a9..00cc5998 100644 --- a/src/views/_sila/Processors/Dynamic/CpuTemp.vue +++ b/src/views/_sila/Processors/Dynamic/CpuTemp.vue @@ -165,6 +165,12 @@ export default { }, }, + watch: { + timeScale() { + this.loadData(); + }, + }, + methods: { onOpened(state) { if (state) { @@ -173,7 +179,7 @@ export default { }, loadData() { - let payload = null; + let payload = { lastHour: false }; if (this.timeScale === 'hour') { payload = { lastHour: true }; } |