summaryrefslogtreecommitdiff
path: root/src/components/_sila
diff options
context:
space:
mode:
authorVitalii Lysak <v.lysak@dunice.net>2022-08-19 15:54:53 +0300
committerVitalii Lysak <v.lysak@dunice.net>2022-08-19 15:54:53 +0300
commit24794f83ae125ecf6f4f51c434140f51bd3fe452 (patch)
treee37c9c6799b9c931643d09197fb1f31587e14f12 /src/components/_sila
parent014378279f8d2dcaf66515ee1fb900abc9332777 (diff)
downloadwebui-vue-24794f83ae125ecf6f4f51c434140f51bd3fe452.tar.xz
SILABMC-270: resetZoom name from locale
Diffstat (limited to 'src/components/_sila')
-rw-r--r--src/components/_sila/Global/Chart.vue10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/_sila/Global/Chart.vue b/src/components/_sila/Global/Chart.vue
index 19491f68..5c32b031 100644
--- a/src/components/_sila/Global/Chart.vue
+++ b/src/components/_sila/Global/Chart.vue
@@ -3,6 +3,7 @@
</template>
<script>
+import Highcharts from 'highcharts';
import { Chart } from 'highcharts-vue';
export default {
@@ -335,10 +336,19 @@ export default {
},
async created() {
+ this.setChart();
this.setOptions();
},
methods: {
+ setChart() {
+ Highcharts.setOptions({
+ lang: {
+ resetZoom: this.$t('chart.resetZoom'),
+ },
+ });
+ },
+
setOptions() {
switch (this.type) {
case 'fans':