Files
IGP-Fan-Reference/Pages/Portals/GlossaryDialogPortal.razor
T
2026-06-04 12:07:14 -04:00

29 lines
498 B
Plaintext

@implements IDisposable;
@inject IGlossaryDialogService glossaryDialogService
@if (glossaryDialogService.HasDialog())
{
<GlossaryDialogComponent></GlossaryDialogComponent>
}
@code {
protected override void OnInitialized()
{
base.OnInitialized();
glossaryDialogService.Subscribe(OnUpdate);
}
void IDisposable.Dispose()
{
glossaryDialogService.Unsubscribe(OnUpdate);
}
void OnUpdate()
{
InvokeAsync(StateHasChanged);
}
}