File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
apps/files/src/components Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ import NcProgressBar from '@nextcloud/vue/dist/Components/NcProgressBar.js'
3333import logger from ' ../logger.js'
3434import { subscribe } from ' @nextcloud/event-bus'
3535
36+ const { session_keepalive: keepSessionAlive } = loadState (' core' , ' config' , {})
37+
3638export 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 )
You can’t perform that action at this time.
0 commit comments