Skip to content

Commit

Permalink
fix(dashboard): don't reload hidden widgets
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <[email protected]>

[skip ci]
  • Loading branch information
st3iny authored and backportbot[bot] committed Jan 10, 2025
1 parent 3b97190 commit d69ff80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/dashboard/src/DashboardApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ export default {
for (const widget of Object.values(this.apiWidgets)) {
if (widget.reload_interval > 0) {
setInterval(async () => {
if (!this.layout.includes(widget.id)) {
return
}
await this.fetchApiWidgetItems([widget.id], true)
}, widget.reload_interval * 1000)
}
Expand Down

0 comments on commit d69ff80

Please sign in to comment.