Add PageNoteButton to various components for enhanced note management

This commit is contained in:
2026-01-17 10:25:38 -05:00
parent 947d95893f
commit e6eb35ee67
15 changed files with 69 additions and 19 deletions
+5 -2
View File
@@ -6,7 +6,7 @@
@inject ISnackbar Snackbar
@inject IDialogService DialogService
<MudDialog>
<MudDialog Class="@MarkdownHelper.GetNoteColorClass(_note.Id)">
<DialogContent>
<MudStack Spacing="3">
<MudTextField @bind-Value="_note.Title"
@@ -14,7 +14,8 @@
Variant="Variant.Outlined"
Required="true"
RequiredError="Title is required"
MaxLength="200" />
MaxLength="200"
ReadOnly="@IsPageNote" />
<MudText Typo="Typo.subtitle2" Class="mb-2">Content (Markdown)</MudText>
<MarkdownEditor Value="@_note.Content"
@@ -42,6 +43,8 @@
private Note _note = null!;
private bool IsPageNote => Note?.Title?.StartsWith("@") ?? false;
protected override void OnInitialized()
{
_note = new Note