diff --git a/src/ui/legacy-link-button.vue b/src/ui/legacy-link-button.vue index 554986a..ad57cb6 100644 --- a/src/ui/legacy-link-button.vue +++ b/src/ui/legacy-link-button.vue @@ -30,8 +30,12 @@ export default { stop: endTime } - for (const metricKey of this.$store.getters['metrics/getAllKeys']()) { - target.cntr.push(metricKey) + for (const metric of this.$store.getters['metrics/getAll']()) { + if (metric.factor === undefined || metric.factor === 1) { + target.cntr.push(metric.key) + } else { + target.cntr.push([metric.key, metric.factor]) + } } return this.$store.getters.getLegacyLink() + '#' + JSURL.stringify(target) diff --git a/vue.config.js b/vue.config.js index dcb8a11..bf96375 100644 --- a/vue.config.js +++ b/vue.config.js @@ -23,6 +23,7 @@ module.exports = { config.user = user config.password = password } + config.legacyCharts = process.env.VUE_APP_LEGACY_CHARTS return JSON.stringify(config) } }