feat(ui/templates): reveal deep-linked template on initial render

This commit is contained in:
Joseph Doherty
2026-05-11 11:21:53 -04:00
parent c60aad9df4
commit ca3b34223d

View File

@@ -255,6 +255,14 @@
}
}
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender && TemplateIdParam > 0 && _tree != null)
{
await _tree.RevealNode($"t:{TemplateIdParam}", select: true);
}
}
private async Task LoadTemplatesAsync()
{
_loading = true;