upd: add clear filter option if filter is set

This commit is contained in:
Marie 2024-11-01 13:08:28 +00:00
parent 1520bc1715
commit 131fab1032

View File

@ -93,7 +93,14 @@ function options(ev) {
filetype.value = 'video'; 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() { async function search() {