fix(ui): show empty folders as move and download destinations (#999)

This commit is contained in:
Will Miao
2026-08-23 21:09:16 +08:00
parent 030a32f8fa
commit c2360a35ad
12 changed files with 630 additions and 19 deletions
+3 -2
View File
@@ -200,8 +200,9 @@ class MoveManager {
async initializeFolderTree() {
try {
const apiClient = this._getApiClient();
// Fetch unified folder tree
const treeData = await apiClient.fetchUnifiedFolderTree();
// Fetch unified folder tree, including empty directories so they
// can be selected as move targets
const treeData = await apiClient.fetchUnifiedFolderTree({ includeEmpty: true });
if (treeData.success) {
// Load tree data into folder tree manager