From b9d9935cf36a9563e95989968cb3232a24669a5f Mon Sep 17 00:00:00 2001 From: Wille Marcel Date: Mon, 19 Jul 2021 17:40:56 -0300 Subject: [PATCH] Start dynamic date filter feature --- src/components/filters/filters_list.js | 9 +++++++++ src/config/filters.json | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/filters/filters_list.js b/src/components/filters/filters_list.js index bf4defa9..5513bf05 100644 --- a/src/components/filters/filters_list.js +++ b/src/components/filters/filters_list.js @@ -128,6 +128,15 @@ class FiltersList extends React.PureComponent { max={today} /> + {f.relativeOption && ( + + + + )} ); } diff --git a/src/config/filters.json b/src/config/filters.json index 941513ae..b94cd85f 100644 --- a/src/config/filters.json +++ b/src/config/filters.json @@ -7,7 +7,8 @@ "display": "Date", "type": "date", "description": "Set the date range to view changesets created during that duration.", - "placeholder": "YYYY-MM-DD" + "placeholder": "YYYY-MM-DD", + "relativeOption": true }, { "name": "comment",