mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
fix(dashboard): don't reload hidden widgets
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
parent
33b564dfa9
commit
84c20650d2
3 changed files with 7 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
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