From 88a779bbdb0cac7b150e606ce94e4ad24f52cec2 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 13 Dec 2025 01:10:38 +0200 Subject: [PATCH] feat(status_bar): indicate selected code mime in menu --- apps/client/src/widgets/layout/StatusBar.tsx | 1 + apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/layout/StatusBar.tsx b/apps/client/src/widgets/layout/StatusBar.tsx index cbbb2f305..2e5b78860 100644 --- a/apps/client/src/widgets/layout/StatusBar.tsx +++ b/apps/client/src/widgets/layout/StatusBar.tsx @@ -364,6 +364,7 @@ function CodeNoteSwitcher({ note }: StatusBarContext) { dropdownOptions={{ autoClose: true }} > server.put(`notes/${note.noteId}/type`, { type, mime })} setModalShown={() => {}} diff --git a/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx b/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx index 75887c0b4..772acbc79 100644 --- a/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx +++ b/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx @@ -131,7 +131,8 @@ export function NoteTypeDropdownContent({ currentNoteType, currentNoteMime, note ); } -export function NoteTypeCodeNoteList({ mimeTypes, changeNoteType, setModalShown }: { +export function NoteTypeCodeNoteList({ currentMimeType, mimeTypes, changeNoteType, setModalShown }: { + currentMimeType?: string; mimeTypes: MimeType[]; changeNoteType(type: NoteType, mime: string): void; setModalShown(shown: boolean): void; @@ -141,6 +142,7 @@ export function NoteTypeCodeNoteList({ mimeTypes, changeNoteType, setModalShown {mimeTypes.map(({ title, mime }) => ( changeNoteType("code", mime)} > {title}