diff --git a/src-ui/src/app/components/document-notes/document-notes.component.html b/src-ui/src/app/components/document-notes/document-notes.component.html index a68f86aa7b..b6ac1b4f73 100644 --- a/src-ui/src/app/components/document-notes/document-notes.component.html +++ b/src-ui/src/app/components/document-notes/document-notes.component.html @@ -2,26 +2,47 @@
- -
- Please enter a note. -
+ + @if (noteView() === NoteViewMode.Preview) { +
+ @if (noteForm.get('newNote').value) { +
+ } @else { + Nothing to preview + } +
+ } +
+ Please enter a note. +
-
+
@if (networkActive()) {
} +
+ + + + +

- @for (note of notes(); track note) { + @for (note of notes(); track note.id) {
-

{{note.note}}

+ @if (note.format === NoteFormat.Markdown) { +
+ } @else { +

{{note.note}}

+ }