summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-12-23 01:32:06 +0100
committerPřemysl Eric Janouch <p@janouch.name>2023-12-23 01:32:06 +0100
commite0a64f2e1dcf9effdb9e0d6aea0eca7124bafadb (patch)
treec4b94e793f4a96eb608147fc20f5b97be20ff3f2 /public
parent42a57b3271575fd323068bf8b9108d00f0b4a5b3 (diff)
downloadgallery-e0a64f2e1dcf9effdb9e0d6aea0eca7124bafadb.tar.gz
gallery-e0a64f2e1dcf9effdb9e0d6aea0eca7124bafadb.tar.xz
gallery-e0a64f2e1dcf9effdb9e0d6aea0eca7124bafadb.zip
WIP: Global duplicate search
Diffstat (limited to 'public')
-rw-r--r--public/gallery.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/public/gallery.js b/public/gallery.js
index 009eb1e..19d63bb 100644
--- a/public/gallery.js
+++ b/public/gallery.js
@@ -336,12 +336,9 @@ let DuplicatesList = {
if (DuplicatesModel.entries.length == 0)
return "No duplicates"
- return m('.duplicates', {}, DuplicatesModel.entries.map(entry =>
- m('.row', [
- m(DuplicatesThumbnail, {info: entry.main}),
- entry.similar.map(entry =>
- m(DuplicatesThumbnail, {info: entry})),
- ]),
+ return m('.duplicates', {}, DuplicatesModel.entries.map(group =>
+ m('.row', group.map(entry =>
+ m(DuplicatesThumbnail, {info: entry}))),
))
},
}