Videos/Archives search input is clearable.

This commit is contained in:
Roland 2024-05-08 17:44:44 -06:00
parent cd00df5c13
commit fd619853b6
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
4 changed files with 4 additions and 2 deletions

View file

@ -506,6 +506,7 @@ function ArchivesPage() {
const [localSearchStr, setLocalSearchStr] = React.useState(searchStr || '');
const searchInput = <SearchInput
onChange={setLocalSearchStr}
onClear={() => setLocalSearchStr(null)}
searchStr={localSearchStr}
onSubmit={setSearchStr}
placeholder='Search Archives...'

View file

@ -220,7 +220,7 @@ export function DateSelectorButton({
onClose={handleClose}
size='tiny'
>
<ModalHeader>Filter by Date</ModalHeader>
<ModalHeader>Filter by Published Date</ModalHeader>
<ModalContent>
<Segment>
<DateRangeForm dateRange={dateRange} setDateRange={localOnSetDateRange}/>

View file

@ -179,6 +179,7 @@ function VideosPage() {
const searchInput = <SearchInput
searchStr={localSearchStr}
onChange={setLocalSearchStr}
onClear={() => setLocalSearchStr(null)}
onSubmit={setSearchStr}
placeholder='Search Videos...'
/>;

View file

@ -10,7 +10,7 @@ from wrolpi.files.models import FileGroup
@pytest.mark.asyncio
async def test_pdf_title(test_async_client, test_session, example_pdf):
"""PDF modeler extracts a PDF's title and contents."""
"""PDF modeler extracts a PDFs title and contents."""
await files_lib.refresh_files()
with mock.patch('wrolpi.files.pdfs.get_pdf_metadata') as mock_get_pdf_metadata: