mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
fix(files): Respect 'session_keepalive' => false
Signed-off-by: Louis Chmn <louis@chmn.me>
This commit is contained in:
parent
b679eebe9b
commit
369dcac7c9
1 changed files with 5 additions and 1 deletions
|
|
@ -33,6 +33,8 @@ import NcProgressBar from '@nextcloud/vue/dist/Components/NcProgressBar.js'
|
|||
import logger from '../logger.js'
|
||||
import { subscribe } from '@nextcloud/event-bus'
|
||||
|
||||
const { session_keepalive: keepSessionAlive } = loadState('core', 'config', {})
|
||||
|
||||
export default {
|
||||
name: 'NavigationQuota',
|
||||
|
||||
|
|
@ -78,7 +80,9 @@ export default {
|
|||
* Update storage stats every minute
|
||||
* TODO: remove when all views are migrated to Vue
|
||||
*/
|
||||
setInterval(this.throttleUpdateStorageStats, 60 * 1000)
|
||||
if (keepSessionAlive !== false) {
|
||||
setInterval(this.throttleUpdateStorageStats, 60 * 1000)
|
||||
}
|
||||
|
||||
subscribe('files:node:created', this.throttleUpdateStorageStats)
|
||||
subscribe('files:node:deleted', this.throttleUpdateStorageStats)
|
||||
|
|
|
|||
Loading…
Reference in a new issue