Mise à jour avec la possibilité de mettre des images
This commit is contained in:
@@ -72,7 +72,7 @@ export function buildLoreSidebarConfig(data: LoreSidebarData): SecondarySidebarC
|
||||
const children: TreeItem[] = [
|
||||
...subFolders.map(buildFolderItem),
|
||||
...nodePages.map(p => ({
|
||||
id: p.id!,
|
||||
id: `page-${p.id}`,
|
||||
label: p.title,
|
||||
route: `/lore/${lore.id}/pages/${p.id}`
|
||||
})),
|
||||
@@ -89,8 +89,11 @@ export function buildLoreSidebarConfig(data: LoreSidebarData): SecondarySidebarC
|
||||
route: `/lore/${lore.id}/nodes/${node.id}/pages/create`
|
||||
}
|
||||
];
|
||||
// IDs préfixés par type — chaque entité a sa propre séquence IDENTITY en base,
|
||||
// donc node.id=1 et page.id=1 peuvent coexister et collisionner dans le
|
||||
// Set<string> global de LayoutService.expanded.
|
||||
return {
|
||||
id: node.id!,
|
||||
id: `folder-${node.id}`,
|
||||
label: node.name,
|
||||
iconKey: node.icon ?? undefined,
|
||||
route: `/lore/${lore.id}/folders/${node.id}/edit`,
|
||||
|
||||
Reference in New Issue
Block a user