From f344096da45b8aca43f0b64205b7e6b6faacd7ce Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Fri, 9 Apr 2021 19:20:51 +0800 Subject: [PATCH] SearchOptions: label fixes ## Issue 5842: search filters fall out --- static/app-strings.json | 1 + ui/component/searchOptions/view.jsx | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index 8f73223d5..7e31c6c0b 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -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.", diff --git a/ui/component/searchOptions/view.jsx b/ui/component/searchOptions/view.jsx index 746f28f44..ac1216f18 100644 --- a/ui/component/searchOptions/view.jsx +++ b/ui/component/searchOptions/view.jsx @@ -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) => { ); + const uploadDateLabel = + options[SEARCH_OPTIONS.CLAIM_TYPE] === SEARCH_OPTIONS.INCLUDE_CHANNELS ? __('Creation Date') : __('Upload Date'); + return (