Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(collections): mark the current view type with a check
Elian Doranbe99c146475f
diff --git a/apps/client/src/widgets/note_bars/CollectionProperties.tsx b/apps/client/src/widgets/note_bars/CollectionProperties.tsxindex b85f339256..5d3bbacc87 100644--- a/apps/client/src/widgets/note_bars/CollectionProperties.tsx+++ b/apps/client/src/widgets/note_bars/CollectionProperties.tsx@@ -210,8 +210,8 @@ function ViewTypeSwitcher({ noteType, viewType, setViewType }: {<FormListItemkey={key}onClick={() => setViewType(key)}- selected={viewType === key}- disabled={viewType === key}+ checked={viewType === key}+ checkableicon={ICON_MAPPINGS[key]}badges={key === "dashboard" ? [{ text: t("note_types.beta-feature") }] : undefined}>{VIEW_TYPE_MAPPINGS[key]}</FormListItem>