Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/components/filters/filters_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ class FiltersList extends React.PureComponent<void, propsType, *> {
max={today}
/>
</span>
{f.relativeOption && (
<span className="flex-parent flex-parent--row h36">
<label class="switch-container">
<input type="checkbox" />
<div class="switch switch--blue mr6"></div>
Dynamic date filter
</label>
</span>
)}
</Wrapper>
);
}
Expand Down
3 changes: 2 additions & 1 deletion src/config/filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down