From ca981a5cf99f016be02dddc090c2927dd9997c42 Mon Sep 17 00:00:00 2001
From: Vitalii Lysak <v.lysak@dunice.net>
Date: Mon, 22 Aug 2022 17:31:25 +0300
Subject: SILABMC-271: add max reading as chart max

---
 src/views/_sila/Processors/Dynamic/CpuTemp.vue | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'src/views/_sila/Processors/Dynamic/CpuTemp.vue')

diff --git a/src/views/_sila/Processors/Dynamic/CpuTemp.vue b/src/views/_sila/Processors/Dynamic/CpuTemp.vue
index 840034a3..0f90341b 100644
--- a/src/views/_sila/Processors/Dynamic/CpuTemp.vue
+++ b/src/views/_sila/Processors/Dynamic/CpuTemp.vue
@@ -75,6 +75,7 @@
         :colors="colors"
         :warning="warningLimit"
         :critical="criticalLimit"
+        :max="maxLimit"
       ></chart>
       <b-table
         responsive="md"
@@ -227,6 +228,12 @@ export default {
       })?.UpperThresholdCritical;
     },
 
+    maxLimit() {
+      return this.limits.find((limit) => {
+        return limit?.MaxReadingRangeTemp;
+      })?.MaxReadingRangeTemp;
+    },
+
     allSensors() {
       return this.timeScale === 'hour'
         ? this.$store.getters['processors/cpuTempLastHour']
-- 
cgit v1.2.3

