photoprism/internal/form/selection.go
Michael Mayer e02cbe1b10 Labels: Add context menu
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-02-04 05:18:22 +01:00

16 lines
274 B
Go

package form
type Selection struct {
Photos []string `json:"photos"`
Albums []string `json:"albums"`
Labels []string `json:"labels"`
}
func (f Selection) Empty() bool {
if len(f.Photos) > 0 || len(f.Albums) > 0 || len(f.Labels) > 0 {
return false
}
return true
}