Skip to content
Snippets Groups Projects
Commit 131fab10 authored by Marie's avatar Marie 🚅
Browse files

upd: add clear filter option if filter is set

parent 1520bc17
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment