Merge pull request #50120 from nextcloud/backport/50111/stable30

[stable30] fix(dashboard): don't reload hidden widgets
pull/50664/head
Andy Scherzinger 2025-02-05 12:01:52 +07:00 committed by GitHub
commit 725e6e6a22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

@ -295,6 +295,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)
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long