Skip to content

Commit

Permalink
Merge pull request #50119 from nextcloud/backport/50111/stable29
Browse files Browse the repository at this point in the history
[stable29] fix(dashboard): don't reload hidden widgets
  • Loading branch information
AndyScherzinger authored Feb 5, 2025
2 parents d411ddf + 0d64b61 commit ab37ea1
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 @@ -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
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 ab37ea1

Please sign in to comment.