fix: openActivityTarget now loads fileItems before showing Files tab

selectNode() resets fileItems=[] and activeTab='overview'. Setting
activeTab='files' programmatically does not trigger the tab click
handler that calls loadFolder(), so the file tree stays empty.

Fix: explicitly call await loadFolder(selectedNode.id) in the files
branch of openActivityTarget.

Also: unified resolveActivityTarget return shape to always use
targetId/targetPath regardless of targetType.
This commit is contained in:
2026-06-03 17:23:42 +08:00
parent 0bebcdce8c
commit 4ec03c849f
3 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
background: #13131f;
}
</style>
<script type="module" crossorigin src="/assets/main-DctkOBUz.js"></script>
<script type="module" crossorigin src="/assets/main-B4NdnBxC.js"></script>
<link rel="stylesheet" crossorigin href="/assets/main-BafVhx43.css">
</head>
<body>