This commit is contained in:
2026-06-04 12:07:14 -04:00
parent c1f041b4f6
commit 02cae92797
31 changed files with 1709 additions and 13 deletions
+21 -1
View File
@@ -1,4 +1,7 @@
<MudThemeProvider IsDarkMode="true"/>
@inject IGlossaryDialogService GlossaryDialogService
@inject IJSRuntime JsRuntime
<MudThemeProvider IsDarkMode="true"/>
<MudDialogProvider/>
<MudSnackbarProvider/>
@@ -20,3 +23,20 @@
<ToastPortal/>
<SearchPortal/>
<ConfirmationDialogPortal/>
@code {
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
await JsRuntime.InvokeVoidAsync("glossaryInterop.init", DotNetObjectReference.Create(this));
}
}
[JSInvokable]
public void OpenGlossaryTerm(string termId)
{
GlossaryDialogService.AddDialog(termId);
StateHasChanged();
}
}