diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json index bba8036bf..41616154b 100644 --- a/apps/client/src/translations/en/translation.json +++ b/apps/client/src/translations/en/translation.json @@ -764,7 +764,8 @@ "calendar": "Calendar", "table": "Table", "geo-map": "Geo Map", - "board": "Board" + "board": "Board", + "include_archived_notes": "Include archived notes" }, "edited_notes": { "no_edited_notes_found": "No edited notes on this day yet...", diff --git a/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx b/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx index ebacd85d3..c58bbc02b 100644 --- a/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx +++ b/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx @@ -24,7 +24,7 @@ const VIEW_TYPE_MAPPINGS: Record = { export default function CollectionPropertiesTab({ note }: TabContext) { const [ viewType, setViewType ] = useNoteLabel(note, "viewType"); - const viewTypeWithDefault = viewType ?? "grid"; + const viewTypeWithDefault = (viewType ?? "grid") as ViewTypeOptions; const properties = bookPropertiesConfig[viewTypeWithDefault].properties; return ( @@ -32,7 +32,7 @@ export default function CollectionPropertiesTab({ note }: TabContext) { {note && ( <> - + )} @@ -54,7 +54,7 @@ function CollectionTypeSwitcher({ viewType, setViewType }: { viewType: string, s ) } -function BookProperties({ note, properties }: { note: FNote, properties: BookProperty[] }) { +function BookProperties({ viewType, note, properties }: { viewType: ViewTypeOptions, note: FNote, properties: BookProperty[] }) { return (
{properties.map(property => ( @@ -62,6 +62,16 @@ function BookProperties({ note, properties }: { note: FNote, properties: BookPro {mapPropertyView({ note, property })}
))} + + {viewType !== "list" && viewType !== "grid" && ( + + )} ) } @@ -146,4 +156,4 @@ function LabelledEntry({ label, children }: { label: string, children: Component ) -} \ No newline at end of file +}