SearchOptions: label fixes
## Issue 5842: search filters fall out
This commit is contained in:
parent
fb839b92ef
commit
f344096da4
2 changed files with 6 additions and 2 deletions
|
@ -191,6 +191,7 @@
|
||||||
"Oldest first": "Oldest first",
|
"Oldest first": "Oldest first",
|
||||||
"Exact match": "Exact match",
|
"Exact match": "Exact match",
|
||||||
"Upload Date": "Upload Date",
|
"Upload Date": "Upload Date",
|
||||||
|
"Creation Date": "Creation Date",
|
||||||
"Sort By": "Sort By",
|
"Sort By": "Sort By",
|
||||||
"Custom Code": "Custom Code",
|
"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.",
|
"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.",
|
||||||
|
|
|
@ -22,7 +22,7 @@ const TYPES_ADVANCED = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const TIME_FILTER = {
|
const TIME_FILTER = {
|
||||||
'': 'None',
|
'': 'All',
|
||||||
// [SEARCH_OPTIONS.TIME_FILTER_LAST_HOUR]: 'Last Hour', -- disable (doesn't work)
|
// [SEARCH_OPTIONS.TIME_FILTER_LAST_HOUR]: 'Last Hour', -- disable (doesn't work)
|
||||||
[SEARCH_OPTIONS.TIME_FILTER_TODAY]: 'Last 24 Hours',
|
[SEARCH_OPTIONS.TIME_FILTER_TODAY]: 'Last 24 Hours',
|
||||||
[SEARCH_OPTIONS.TIME_FILTER_THIS_WEEK]: 'This Week',
|
[SEARCH_OPTIONS.TIME_FILTER_THIS_WEEK]: 'This Week',
|
||||||
|
@ -210,6 +210,9 @@ const SearchOptions = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const uploadDateLabel =
|
||||||
|
options[SEARCH_OPTIONS.CLAIM_TYPE] === SEARCH_OPTIONS.INCLUDE_CHANNELS ? __('Creation Date') : __('Upload Date');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Button
|
<Button
|
||||||
|
@ -227,7 +230,7 @@ const SearchOptions = (props: Props) => {
|
||||||
<table className="table table--condensed">
|
<table className="table table--condensed">
|
||||||
<tbody>
|
<tbody>
|
||||||
{addRow(__('Type'), typeElem)}
|
{addRow(__('Type'), typeElem)}
|
||||||
{addRow(__('Upload Date'), uploadDateElem)}
|
{addRow(uploadDateLabel, uploadDateElem)}
|
||||||
{addRow(__('Sort By'), sortByElem)}
|
{addRow(__('Sort By'), sortByElem)}
|
||||||
{addRow(__('Other Options'), otherOptionsElem)}
|
{addRow(__('Other Options'), otherOptionsElem)}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Add table
Reference in a new issue