mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-05 23:54:25 +00:00
fix(webui): resolve folder tree sync, search dialog reset, and sidebar actions issues
- Change query key invalidation of folders to the generic ['folders'] key to update the sidebar tree on create/rename/delete/move - Separate search box from custom filters reset button in search dialog - Remove unused plus icon from Assets sidebar header - Add dropdown menu (rename, download, delete) to subfolder tree items in the sidebar
This commit is contained in:
@@ -275,7 +275,7 @@ export function FileBrowser({
|
||||
},
|
||||
})
|
||||
queryClient.invalidateQueries({ queryKey: ['search', teamId] })
|
||||
queryClient.invalidateQueries({ queryKey: ['folders', teamId] })
|
||||
queryClient.invalidateQueries({ queryKey: ['folders'] })
|
||||
setMoveCopyMode(null)
|
||||
setItemsToMoveCopy([])
|
||||
onClearSelection()
|
||||
@@ -305,7 +305,7 @@ export function FileBrowser({
|
||||
},
|
||||
})
|
||||
queryClient.invalidateQueries({ queryKey: ['search', teamId] })
|
||||
queryClient.invalidateQueries({ queryKey: ['folders', teamId] })
|
||||
queryClient.invalidateQueries({ queryKey: ['folders'] })
|
||||
setMoveCopyMode(null)
|
||||
setItemsToMoveCopy([])
|
||||
onClearSelection()
|
||||
|
||||
Reference in New Issue
Block a user