mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-11-03 19:07:00 -05:00 
			
		
		
		
	Update:Library folder browser to not save folders from request #1371
This commit is contained in:
		
							parent
							
								
									5a26704c32
								
							
						
					
					
						commit
						ddabd0ee75
					
				@ -70,8 +70,8 @@ export const actions = {
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
  loadFolders({ state, commit }) {
 | 
					  loadFolders({ state, commit }) {
 | 
				
			||||||
    if (state.folders.length) {
 | 
					    if (state.folders.length) {
 | 
				
			||||||
      var lastCheck = Date.now() - state.folderLastUpdate
 | 
					      const lastCheck = Date.now() - state.folderLastUpdate
 | 
				
			||||||
      if (lastCheck < 1000 * 60 * 10) { // 10 minutes
 | 
					      if (lastCheck < 1000 * 5) { // 5 seconds
 | 
				
			||||||
        // Folders up to date
 | 
					        // Folders up to date
 | 
				
			||||||
        return state.folders
 | 
					        return state.folders
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user