mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 18:39:01 +01:00
feat(collections/list): enable "Show archived notes" checkmark in collections
This commit is contained in:
parent
e51daad5da
commit
454310c3e4
@ -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"
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user