Skip to content

Build your personal knowledge base with Trilium Notes

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.tsx
index 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 }: {
<FormListItem
key={key}
onClick={() => setViewType(key)}
- selected={viewType === key}
- disabled={viewType === key}
+ checked={viewType === key}
+ checkable
icon={ICON_MAPPINGS[key]}
badges={key === "dashboard" ? [{ text: t("note_types.beta-feature") }] : undefined}
>{VIEW_TYPE_MAPPINGS[key]}</FormListItem>