feat(library): a clear-all button puts every filter back at once
This commit is contained in:
@@ -3023,6 +3023,29 @@ function Catalogue({ admin, user }: { admin: boolean; user: User | null }) {
|
||||
))}
|
||||
</select>
|
||||
|
||||
{/* 5b. The way back to the whole roll: every filter in this
|
||||
row undone at once, which is otherwise four selects and
|
||||
two dropdowns put back by hand. The order is left alone —
|
||||
a sort is not a filter, and it is where the reader was. */}
|
||||
<button
|
||||
type="button"
|
||||
className="adm-input"
|
||||
data-key="lib-filter-reset"
|
||||
aria-label={t('lib.filterReset')}
|
||||
title={t('lib.filterReset')}
|
||||
onClick={() => {
|
||||
setMinStar(0);
|
||||
setYear('all');
|
||||
setMonth('all');
|
||||
setDay('all');
|
||||
setFrom('any');
|
||||
setTo('any');
|
||||
}}
|
||||
style={{ flexShrink: 0, cursor: 'pointer', fontWeight: 600, padding: '0 8px' }}
|
||||
>
|
||||
✕
|
||||
</button>
|
||||
|
||||
{/* 6. Search: a name or a tag. The one control here that
|
||||
leaves the shelf — the four before it look through the
|
||||
frames already in hand, this one asks Immich for frames
|
||||
|
||||
Reference in New Issue
Block a user