Skip to content

Build your personal knowledge base with Trilium Notes

feat(collections/list): enable "Show archived notes" checkmark in collections

Elian Doran454310c3e45d
diff --git a/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx b/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx
index 9d8113b3c1..e961ae1f0e 100644
--- a/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx
+++ b/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx
@@ -59,13 +59,12 @@ function CollectionTypeSwitcher({ viewType, setViewType }: { viewType: string, s
function BookProperties({ viewType, note, properties }: { viewType: ViewTypeOptions, note: FNote, properties: BookProperty[] }) {
return (
<>
- {properties.map(property => (
+ {properties.map(property => (
<div className={`type-${property}`}>
- {mapPropertyView({ note, property })}
+ {mapPropertyView({ note, property })}
</div>
- ))}
+ ))}
- {viewType !== "list" && viewType !== "grid" && (
<CheckboxPropertyView
note={note} property={{
bindToLabel: "includeArchived",
@@ -73,7 +72,6 @@ function BookProperties({ viewType, note, properties }: { viewType: ViewTypeOpti
type: "checkbox"
}}
/>
- )}
</>
)
}