UX: Add Delete All button to archive page toolbar #272

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2023-07-23 17:57:48 +02:00
parent 90eac1966b
commit ad3da85ecb
9 changed files with 119 additions and 27 deletions

View File

@@ -38,10 +38,10 @@ func TestSelection_Empty(t *testing.T) {
})
}
func TestSelection_All(t *testing.T) {
func TestSelection_Get(t *testing.T) {
t.Run("success", func(t *testing.T) {
sel := Selection{Photos: []string{"p123", "p456"}, Albums: []string{"a123"}, Labels: []string{"l123", "l456", "l789"}, Files: []string{"f567", "f111"}, Places: []string{"p568"}, Subjects: []string{"jqzkpo13j8ngpgv4"}}
assert.Equal(t, []string{"p123", "p456", "a123", "l123", "l456", "l789", "p568", "jqzkpo13j8ngpgv4"}, sel.All())
assert.Equal(t, []string{"p123", "p456", "a123", "l123", "l456", "l789", "p568", "jqzkpo13j8ngpgv4"}, sel.Get())
})
}