Fix filetree SSR tab selection

This commit is contained in:
lix-2026
2026-05-26 14:34:47 +08:00
parent 4744757883
commit f961c1e2a1
5 changed files with 94 additions and 5 deletions
@@ -484,6 +484,11 @@ pub async fn root_entry(
&workspace_projection,
Some(sidebar_tree_html.as_str()),
Some(file_tree_html.as_str()),
if requests_filetree_first {
Some("filetree")
} else {
None
},
);
let workspace_name = workspace_projection.workspace_name.clone();
let active_page_id = selected_active_page_id.unwrap_or_default();
@@ -663,6 +668,7 @@ pub async fn trash_entry(
&workspace_projection,
Some(sidebar_tree_html.as_str()),
Some(file_tree_html.as_str()),
None,
);
let trash_workbench_html = render_local_trash_workbench_html(
&workspace_id,
@@ -725,6 +731,7 @@ pub async fn trash_entry(
&workspace_projection,
Some(sidebar_tree_html.as_str()),
Some(file_tree_html.as_str()),
None,
);
let dataset = load_sidebar_dataset(state.config(), &context, &workspace_id)
.await