mirror of
https://github.com/zadam/trilium.git
synced 2025-12-10 12:46:20 +08:00
chore(book_properties): add config for all note types
This commit is contained in:
parent
e25727441d
commit
c9c07f0cb0
1 changed files with 22 additions and 13 deletions
|
|
@ -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: []
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue