Skip to content

Build your personal knowledge base with Trilium Notes

chore(book_properties): add config for all note types

Elian Doranc9c07f0cb064
diff --git a/apps/client/src/widgets/ribbon_widgets/book_properties_config.ts b/apps/client/src/widgets/ribbon_widgets/book_properties_config.ts
index c2522610a5..6a5ac710ad 100644
--- a/apps/client/src/widgets/ribbon_widgets/book_properties_config.ts
+++ b/apps/client/src/widgets/ribbon_widgets/book_properties_config.ts
@@ -30,19 +30,8 @@ interface BookContext {
}
export const bookPropertiesConfig: Record<ViewTypeOptions, BookConfig> = {
- calendar: {
- properties: [
- {
- label: t("book_properties_config.hide-weekends"),
- type: "checkbox",
- bindToLabel: "calendar:hideWeekends"
- },
- {
- label: t("book_properties_config.display-week-numbers"),
- type: "checkbox",
- bindToLabel: "calendar:weekNumbers"
- }
- ]
+ grid: {
+ properties: []
},
list: {
properties: [
@@ -77,5 +66,25 @@ export const bookPropertiesConfig: Record<ViewTypeOptions, BookConfig> = {
},
}
]
+ },
+ calendar: {
+ properties: [
+ {
+ label: t("book_properties_config.hide-weekends"),
+ type: "checkbox",
+ bindToLabel: "calendar:hideWeekends"
+ },
+ {
+ label: t("book_properties_config.display-week-numbers"),
+ type: "checkbox",
+ bindToLabel: "calendar:weekNumbers"
+ }
+ ]
+ },
+ geoMap: {
+ properties: []
+ },
+ table: {
+ properties: []
}
};