Skip to content

Commit

Permalink
Adds factor to legacy link generation
Browse files Browse the repository at this point in the history
  • Loading branch information
bmario committed Oct 17, 2024
1 parent 88f40f8 commit a53aa8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ui/legacy-link-button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module.exports = {
config.user = user
config.password = password
}
config.legacyCharts = process.env.VUE_APP_LEGACY_CHARTS
return JSON.stringify(config)
}
}
Expand Down

0 comments on commit a53aa8a

Please sign in to comment.