mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 23:46:18 -05:00
Videos/Archives search input is clearable.
This commit is contained in:
parent
cd00df5c13
commit
fd619853b6
4 changed files with 4 additions and 2 deletions
|
|
@ -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...'
|
||||
|
|
|
|||
|
|
@ -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}/>
|
||||
|
|
|
|||
|
|
@ -179,6 +179,7 @@ function VideosPage() {
|
|||
const searchInput = <SearchInput
|
||||
searchStr={localSearchStr}
|
||||
onChange={setLocalSearchStr}
|
||||
onClear={() => setLocalSearchStr(null)}
|
||||
onSubmit={setSearchStr}
|
||||
placeholder='Search Videos...'
|
||||
/>;
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue