Add a toggle to show unmonitored items in *Arr (#1371)

This commit is contained in:
Thomas Camlong
2023-09-07 21:36:15 +02:00
committed by GitHub
parent 3ede6219ef
commit 39c16c3d29
3 changed files with 12 additions and 2 deletions

View File

@@ -22,6 +22,10 @@ const definition = defineWidget({
type: 'switch',
defaultValue: true,
},
showUnmonitored: {
type: 'switch',
defaultValue: false,
},
useSonarrv4: {
type: 'switch',
defaultValue: false,
@@ -81,7 +85,7 @@ function CalendarTile({ widget }: CalendarTileProps) {
configName: configName!,
month: month.getMonth() + 1,
year: month.getFullYear(),
options: { useSonarrv4: widget.properties.useSonarrv4 },
options: { useSonarrv4: widget.properties.useSonarrv4, showUnmonitored: widget.properties.showUnmonitored },
},
{
staleTime: 1000 * 60 * 60 * 5,