mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-09 06:55:51 +01:00
✨ Add option to hide/show week days on calendar
Fixes Calendar Weekdays line #1091
This commit is contained in:
@@ -12,6 +12,9 @@
|
||||
},
|
||||
"radarrReleaseType": {
|
||||
"label": "Radarr release type"
|
||||
},
|
||||
"hideWeekDays": {
|
||||
"label": "Hide week days"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,10 @@ const definition = defineWidget({
|
||||
id: 'calendar',
|
||||
icon: IconCalendarTime,
|
||||
options: {
|
||||
hideWeekDays: {
|
||||
type: 'switch',
|
||||
defaultValue: true,
|
||||
},
|
||||
useSonarrv4: {
|
||||
type: 'switch',
|
||||
defaultValue: false,
|
||||
@@ -76,7 +80,7 @@ function CalendarTile({ widget }: CalendarTileProps) {
|
||||
size="xs"
|
||||
locale={i18n?.resolvedLanguage ?? 'en'}
|
||||
firstDayOfWeek={widget.properties.sundayStart ? 0 : 1}
|
||||
hideWeekdays
|
||||
hideWeekdays={widget.properties.hideWeekDays ? true : false}
|
||||
style={{ position: 'relative', top: -10 }}
|
||||
date={month}
|
||||
maxLevel="month"
|
||||
|
||||
Reference in New Issue
Block a user