mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Use search stats to populate search menu
This commit is contained in:
@ -12,4 +12,14 @@ case class SearchSummary(
|
||||
cats: List[CategoryCount],
|
||||
fields: List[FieldStats],
|
||||
folders: List[FolderCount]
|
||||
)
|
||||
) {
|
||||
|
||||
def onlyExisting: SearchSummary =
|
||||
SearchSummary(
|
||||
count,
|
||||
tags.filter(_.count > 0),
|
||||
cats.filter(_.count > 0),
|
||||
fields.filter(_.count > 0),
|
||||
folders.filter(_.count > 0)
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user