SearchOptions: label fixes

## Issue
5842: search filters fall out
This commit is contained in:
infinite-persistence 2021-04-09 19:20:51 +08:00 committed by Sean Yesmunt
parent fb839b92ef
commit f344096da4
2 changed files with 6 additions and 2 deletions

View file

@ -191,6 +191,7 @@
"Oldest first": "Oldest first",
"Exact match": "Exact match",
"Upload Date": "Upload Date",
"Creation Date": "Creation Date",
"Sort By": "Sort By",
"Custom Code": "Custom Code",
"Are you a supermodel or rockstar that received a custom reward code? Claim it here.": "Are you a supermodel or rockstar that received a custom reward code? Claim it here.",

View file

@ -22,7 +22,7 @@ const TYPES_ADVANCED = {
};
const TIME_FILTER = {
'': 'None',
'': 'All',
// [SEARCH_OPTIONS.TIME_FILTER_LAST_HOUR]: 'Last Hour', -- disable (doesn't work)
[SEARCH_OPTIONS.TIME_FILTER_TODAY]: 'Last 24 Hours',
[SEARCH_OPTIONS.TIME_FILTER_THIS_WEEK]: 'This Week',
@ -210,6 +210,9 @@ const SearchOptions = (props: Props) => {
</div>
);
const uploadDateLabel =
options[SEARCH_OPTIONS.CLAIM_TYPE] === SEARCH_OPTIONS.INCLUDE_CHANNELS ? __('Creation Date') : __('Upload Date');
return (
<div>
<Button
@ -227,7 +230,7 @@ const SearchOptions = (props: Props) => {
<table className="table table--condensed">
<tbody>
{addRow(__('Type'), typeElem)}
{addRow(__('Upload Date'), uploadDateElem)}
{addRow(uploadDateLabel, uploadDateElem)}
{addRow(__('Sort By'), sortByElem)}
{addRow(__('Other Options'), otherOptionsElem)}
</tbody>