@using Core.Entities @using WebApp.Services @using MudBlazor @_history.Title Modified: @_history.ModifiedAt.ToString("g") by @(_history.ModifiedBy ?? "Unknown") @_history.ChangeType @if (!string.IsNullOrWhiteSpace(_history.Content)) {
@((MarkupString)MarkdownHelper.ToHtml(_history.Content))
} else { No content in this version. }
Close
@code { [CascadingParameter] IMudDialogInstance MudDialog { get; set; } = null!; [Parameter] public NoteHistory History { get; set; } = null!; private NoteHistory _history = null!; protected override void OnInitialized() { _history = History; } private Color GetChangeTypeColor(string changeType) { return changeType switch { "Created" => Color.Success, "Updated" => Color.Info, "Deleted" => Color.Error, _ => Color.Default }; } private void Close() { MudDialog.Close(); } }