From 7f9753363138b3005a8f7e41f8ca569b79da4f5d Mon Sep 17 00:00:00 2001
From: Vitalii Lysak <v.lysak@dunice.net>
Date: Mon, 25 Jul 2022 15:12:46 +0300
Subject: add time tabs

---
 src/views/_sila/Processors/Dynamic/ProcessorsDynamicPage.vue | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

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

diff --git a/src/views/_sila/Processors/Dynamic/ProcessorsDynamicPage.vue b/src/views/_sila/Processors/Dynamic/ProcessorsDynamicPage.vue
index 63133249..cd083412 100644
--- a/src/views/_sila/Processors/Dynamic/ProcessorsDynamicPage.vue
+++ b/src/views/_sila/Processors/Dynamic/ProcessorsDynamicPage.vue
@@ -1,7 +1,11 @@
 <template>
   <b-container fluid="xl">
     <page-title :description="$t('appPageTitle.dynamicInformation')" />
-    <table-date-picker style="margin: -2rem 0 0 -2rem" />
+    <table-date-picker
+      :switch-time-scale="switchTimeScale"
+      :time-scale="timeScale"
+      style="margin: -2rem 0 0 -2rem"
+    />
     <collapse
       id="collapse_1"
       :title="$t('pageProcessors.temperature')"
@@ -195,6 +199,11 @@ export default {
   },
 
   methods: {
+    switchTimeScale(period) {
+      this.timeScale = period;
+      this.loadData();
+    },
+
     updateTemperature() {
       this.temperatureWarning = +this.temperatureWarningInput;
       this.temperatureNonNormal = +this.temperatureNonNormalInput;
-- 
cgit v1.2.3

