Skip to content

Commit

Permalink
Merge pull request ajnart#1109 from ajnart/1091-calendar-weekdays-line
Browse files Browse the repository at this point in the history
✨ Add option to hide/show week days on calendar
  • Loading branch information
ajnart authored Jun 28, 2023
2 parents 618f674 + d008baa commit 6602aa4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion public/locales/en/modules/calendar.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
},
"radarrReleaseType": {
"label": "Radarr release type"
},
"hideWeekDays": {
"label": "Hide week days"
}
}
}
}
}
6 changes: 5 additions & 1 deletion src/widgets/calendar/CalendarTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ const definition = defineWidget({
id: 'calendar',
icon: IconCalendarTime,
options: {
hideWeekDays: {
type: 'switch',
defaultValue: true,
},
useSonarrv4: {
type: 'switch',
defaultValue: false,
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 6602aa4

Please sign in to comment.