mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-03-13 14:38:20 +01:00
upd: add clear filter option if filter is set
This commit is contained in:
parent
1520bc1715
commit
131fab1032
1 changed files with 8 additions and 1 deletions
|
@ -93,7 +93,14 @@ function options(ev) {
|
|||
filetype.value = 'video';
|
||||
},
|
||||
}],
|
||||
}], ev.currentTarget ?? ev.target);
|
||||
},
|
||||
...(filetype.value ? [{
|
||||
text: 'Clear Filter',
|
||||
icon: 'ti ti-trash',
|
||||
action: () => {
|
||||
filetype.value = null;
|
||||
},
|
||||
}] : [])], ev.currentTarget ?? ev.target);
|
||||
}
|
||||
|
||||
async function search() {
|
||||
|
|
Loading…
Add table
Reference in a new issue