feat(ui/templates): reveal deep-linked template on initial render
This commit is contained in:
@@ -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()
|
private async Task LoadTemplatesAsync()
|
||||||
{
|
{
|
||||||
_loading = true;
|
_loading = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user