Skip to content

Commit

Permalink
Merge pull request #50111 from nextcloud/fix/dashboard/skip-hidden-wi…
Browse files Browse the repository at this point in the history
…dgets

fix(dashboard): don't reload hidden widgets
  • Loading branch information
st3iny authored Jan 10, 2025
2 parents 376b00c + 84c2065 commit 43ae9e0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions apps/dashboard/src/DashboardApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,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
4 changes: 2 additions & 2 deletions dist/dashboard-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dashboard-main.js.map

Large diffs are not rendered by default.

0 comments on commit 43ae9e0

Please sign in to comment.