Fix date-range filter selections (Refs #104)
This commit is contained in:
@@ -241,14 +241,14 @@
|
||||
<label for={`activity-days${suffix}`}
|
||||
>Date range<select
|
||||
id={`activity-days${suffix}`}
|
||||
value={filters.days ?? 0}
|
||||
value={String(filters.days ?? 0)}
|
||||
onchange={(event) => update({ days: event.currentTarget.value })}
|
||||
><option value="0">All retained history</option><option value="1"
|
||||
>Last 24 hours</option
|
||||
><option value="7">Last 7 days</option><option value="30">Last 30 days</option
|
||||
><option value="90">Last 90 days</option
|
||||
>{#if filters.days && ![1, 7, 30, 90].includes(filters.days)}<option
|
||||
value={filters.days}>Last {filters.days} days</option
|
||||
value={String(filters.days)}>Last {filters.days} days</option
|
||||
>{/if}</select
|
||||
></label
|
||||
>
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
<label for={`match-days${suffix}`}
|
||||
>Date range<select
|
||||
id={`match-days${suffix}`}
|
||||
value={filters.days}
|
||||
value={String(filters.days)}
|
||||
onchange={(event) => update({ days: event.currentTarget.value })}
|
||||
><option value="0">All time</option><option value="7">Last 7 days</option
|
||||
><option value="30">Last 30 days</option><option value="90">Last 90 days</option
|
||||
|
||||
Reference in New Issue
Block a user