diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-19 15:54:53 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-19 15:54:53 +0300 |
commit | 24794f83ae125ecf6f4f51c434140f51bd3fe452 (patch) | |
tree | e37c9c6799b9c931643d09197fb1f31587e14f12 /src/components | |
parent | 014378279f8d2dcaf66515ee1fb900abc9332777 (diff) | |
download | webui-vue-24794f83ae125ecf6f4f51c434140f51bd3fe452.tar.xz |
SILABMC-270: resetZoom name from locale
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/_sila/Global/Chart.vue | 10 |
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': |