Use an enum instead of a boolean to differentiate search

It's not very likely to have more modes of search besides normal and
trashed, but got surprised in that way quite often and it's nicer this
way anyways.
This commit is contained in:
eikek
2021-08-14 15:08:29 +02:00
parent a7b74bd5ae
commit edb344314f
7 changed files with 85 additions and 23 deletions

View File

@ -79,7 +79,7 @@ request mq =
, limit = Nothing
, withDetails = Just True
, query = renderMaybe mq
, deleted = Just False
, searchMode = Nothing
}