diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-12-23 01:32:06 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-12-23 01:32:06 +0100 |
commit | e0a64f2e1dcf9effdb9e0d6aea0eca7124bafadb (patch) | |
tree | c4b94e793f4a96eb608147fc20f5b97be20ff3f2 /public | |
parent | 42a57b3271575fd323068bf8b9108d00f0b4a5b3 (diff) | |
download | gallery-e0a64f2e1dcf9effdb9e0d6aea0eca7124bafadb.tar.gz gallery-e0a64f2e1dcf9effdb9e0d6aea0eca7124bafadb.tar.xz gallery-e0a64f2e1dcf9effdb9e0d6aea0eca7124bafadb.zip |
WIP: Global duplicate search
Diffstat (limited to 'public')
-rw-r--r-- | public/gallery.js | 9 |
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}))), )) }, } |