mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
People: Add overview page with search and context menu #22
This commit is contained in:
@@ -3,11 +3,12 @@ package form
|
||||
import "strings"
|
||||
|
||||
type Selection struct {
|
||||
Files []string `json:"files"`
|
||||
Photos []string `json:"photos"`
|
||||
Albums []string `json:"albums"`
|
||||
Labels []string `json:"labels"`
|
||||
Places []string `json:"places"`
|
||||
Files []string `json:"files"`
|
||||
Photos []string `json:"photos"`
|
||||
Albums []string `json:"albums"`
|
||||
Labels []string `json:"labels"`
|
||||
Places []string `json:"places"`
|
||||
Subjects []string `json:"subjects"`
|
||||
}
|
||||
|
||||
func (f Selection) Empty() bool {
|
||||
@@ -22,6 +23,8 @@ func (f Selection) Empty() bool {
|
||||
return false
|
||||
case len(f.Places) > 0:
|
||||
return false
|
||||
case len(f.Subjects) > 0:
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
@@ -36,6 +39,7 @@ func (f Selection) All() []string {
|
||||
all = append(all, f.Albums...)
|
||||
all = append(all, f.Labels...)
|
||||
all = append(all, f.Places...)
|
||||
all = append(all, f.Subjects...)
|
||||
|
||||
return all
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user