Skip to content

Commit 388682a

Browse files
Merge pull request #56793 from nextcloud/artonge/fix/files/respect_keep_alive
[stable27] fix(files): Respect `'session_keepalive' => false`
2 parents c195761 + 369dcac commit 388682a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/files/src/components/NavigationQuota.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ import NcProgressBar from '@nextcloud/vue/dist/Components/NcProgressBar.js'
3333
import logger from '../logger.js'
3434
import { subscribe } from '@nextcloud/event-bus'
3535
36+
const { session_keepalive: keepSessionAlive } = loadState('core', 'config', {})
37+
3638
export default {
3739
name: 'NavigationQuota',
3840
@@ -78,7 +80,9 @@ export default {
7880
* Update storage stats every minute
7981
* TODO: remove when all views are migrated to Vue
8082
*/
81-
setInterval(this.throttleUpdateStorageStats, 60 * 1000)
83+
if (keepSessionAlive !== false) {
84+
setInterval(this.throttleUpdateStorageStats, 60 * 1000)
85+
}
8286
8387
subscribe('files:node:created', this.throttleUpdateStorageStats)
8488
subscribe('files:node:deleted', this.throttleUpdateStorageStats)

0 commit comments

Comments
 (0)