mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 20:38:08 +08:00
feat(global-search): add filtering options by starred and bookmarked (#1336)
Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
This commit is contained in:
@@ -224,6 +224,14 @@ func AcceptedByFilter(filter repodb.Filter, data repodb.FilterData) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
if filter.IsBookmarked != nil && *filter.IsBookmarked != data.IsBookmarked {
|
||||
return false
|
||||
}
|
||||
|
||||
if filter.IsStarred != nil && *filter.IsStarred != data.IsStarred {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user