mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix(dashboard): don't reload hidden widgets
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
parent
c5a85dcc1b
commit
e1a3bb6571
1 changed files with 4 additions and 0 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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue