mirror of
https://github.com/docmost/docmost.git
synced 2025-11-16 18:11:10 +10:00
Updates to sidebar tree
* Maintain tree open state on route change and return * Load page tree ancestors and their children when a page is accessed directly * Show correct breadcrumb path * Add emoji to breadcrumbs * Backend api to get page breadcrumbs/ancestors
This commit is contained in:
@ -40,3 +40,10 @@ export async function getSidebarPages(
|
||||
const req = await api.post("/pages/sidebar-pages", params);
|
||||
return req.data;
|
||||
}
|
||||
|
||||
export async function getPageBreadcrumbs(
|
||||
pageId: string,
|
||||
): Promise<Partial<IPage[]>> {
|
||||
const req = await api.post("/pages/breadcrumbs", { pageId });
|
||||
return req.data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user