Skip to content

Commit

Permalink
update error budget valid examples when window days updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alexewerlof committed Apr 18, 2024
1 parent 102be5c commit 765cc23
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ export const app = createApp({
shortWindowDivider: config.shortWindowDivider.default,
}
},
watch: {
windowDays(newVal, oldVal) {
if (newVal !== oldVal) {
this.errorBudgetValidExample = Math.round(this.errorBudgetValidExample * newVal / oldVal)
}
}
},
mounted() {
this.loadState(urlToState(window.location.href))
this.$nextTick(() => {
Expand Down

0 comments on commit 765cc23

Please sign in to comment.