Skip to content

Commit

Permalink
fe - add deleted filter to search autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
slatinsky committed Aug 17, 2024
1 parent 078144a commit a1950a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dcef/frontend/src/lib/search/SearchAutoComplete.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@
{ key: 'after', value: 'specific date', hidden: false },
{ key: 'in', value: 'channel', hidden: false },
{ key: 'pinned', value: 'true or false', hidden: false },
{ key: 'deleted', value: 'true or false', hidden: false },
{ key: 'reaction', value: 'emoji', hidden: false },
{ key: 'message_id', value: 'message id', hidden: true },
{ key: 'in_id', value: 'channel id', hidden: true },
{ key: 'category_id', value: 'category id', hidden: true },
{ key: 'from_id', value: 'user id', hidden: true },
{ key: 'mentions_id', value: 'user id', hidden: true },
{ key: 'reaction_from_id', value: 'user id', hidden: true },
{ key: 'reaction_id', value: 'reaction id', hidden: true }
{ key: 'reaction_id', value: 'reaction id', hidden: true },
]
let searchOptions = $derived.by(()=> { // filtered by key
Expand Down Expand Up @@ -301,7 +302,7 @@
selectBoolean = false
showCalendar = false
}
else if (lastKey.toLowerCase() === 'pinned') {
else if (lastKey.toLowerCase() === 'pinned' || lastKey.toLowerCase() === 'deleted') {
fromAutoComplete = []
mentionAutoComplete = []
channelAutoComplete = []
Expand Down

0 comments on commit a1950a7

Please sign in to comment.