mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Merge pull request #50120 from nextcloud/backport/50111/stable30
[stable30] fix(dashboard): don't reload hidden widgets
This commit is contained in:
commit
725e6e6a22
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)
|
||||
}
|
||||
|
|
|
|||
4
dist/dashboard-main.js
vendored
4
dist/dashboard-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/dashboard-main.js.map
vendored
2
dist/dashboard-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue