mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-09-21 11:11:26 -03:00
feat(sidebar): show empty folders and create folders from the sidebar (#999)
Empty folders (tracked in the scan-recorded all_folders list, same source
the move/download destination picker uses) can now be surfaced in the
folder sidebar via a view-options toggle, dimmed when their subtree holds
no models. Folders can be created directly from the sidebar through a new
POST /api/lm/{prefix}/create-folder endpoint with library-root
containment checks; the scanner records the new directory incrementally
so the tree reflects it without a rescan.
The sidebar header moves its view toggles (tree/list, recursive, empty
folders) into a "..." menu to fit the new create-folder button.
This commit is contained in:
+15
-6
@@ -1246,15 +1246,23 @@
|
||||
"sidebar": {
|
||||
"modelRoot": "Raíz",
|
||||
"collapseAll": "Colapsar todas las carpetas",
|
||||
"collapseAllDisabled": "[TODO: Translate] Not available in list view",
|
||||
"hideOnThisPage": "Ocultar barra lateral en esta página",
|
||||
"showSidebar": "Mostrar barra lateral",
|
||||
"sidebarHiddenNotification": "Barra lateral oculta en la página {page}",
|
||||
"switchToListView": "Cambiar a vista de lista",
|
||||
"switchToTreeView": "Cambiar a vista de árbol",
|
||||
"viewOptions": "[TODO: Translate] View options",
|
||||
"treeView": "[TODO: Translate] Tree view",
|
||||
"listView": "[TODO: Translate] List view",
|
||||
"recursiveOn": "Incluir subcarpetas",
|
||||
"recursiveOff": "Solo carpeta actual",
|
||||
"recursiveUnavailable": "La búsqueda recursiva solo está disponible en la vista en árbol",
|
||||
"collapseAllDisabled": "No disponible en vista de lista",
|
||||
"createFolder": "[TODO: Translate] New folder",
|
||||
"newSubfolder": "[TODO: Translate] New subfolder",
|
||||
"showEmptyFolders": "[TODO: Translate] Show empty folders",
|
||||
"createFolderResult": {
|
||||
"success": "[TODO: Translate] Folder \"{name}\" created",
|
||||
"failed": "[TODO: Translate] Failed to create folder: {message}",
|
||||
"unsupported": "[TODO: Translate] Folder creation is not supported on this page",
|
||||
"noRoot": "[TODO: Translate] No model root is configured"
|
||||
},
|
||||
"dragDrop": {
|
||||
"unableToResolveRoot": "No se puede determinar la ruta de destino para el movimiento.",
|
||||
"moveUnsupported": "El movimiento no es compatible con este elemento.",
|
||||
@@ -1267,7 +1275,8 @@
|
||||
},
|
||||
"empty": {
|
||||
"noFolders": "No se encontraron carpetas",
|
||||
"dragHint": "Arrastra elementos aquí para crear carpetas"
|
||||
"dragHint": "Arrastra elementos aquí para crear carpetas",
|
||||
"createHint": "[TODO: Translate] Click the New Folder button above, or drag items here to create folders"
|
||||
},
|
||||
"folderUpdateCheck": {
|
||||
"label": "Buscar actualizaciones en esta carpeta",
|
||||
|
||||
Reference in New Issue
Block a user