@using WebAssembly.Components.Inputs @implements IDisposable; @inject IMyDialogService MyDialogService @if (MyDialogService.IsVisible && MyDialogService.GetDialogContents().TechStack != null) { var techStack = MyDialogService.GetDialogContents().TechStack;
@techStack.Name
@techStack.Description

@((MarkupString)(techStack.ExtendedNotes?.Replace("\n", "
") ?? ""))
Close
} @code { protected override void OnInitialized() { base.OnInitialized(); MyDialogService.Subscribe(StateHasChanged); Console.WriteLine("TechStackDialogComponent initialized"); } void IDisposable.Dispose() { MyDialogService.Unsubscribe(StateHasChanged); } public void CloseDialog() { Console.WriteLine( "Closing dialog"); MyDialogService.Hide(); } }