Skip to content
Snippets Groups Projects
Commit 417a3546 authored by David Büchler's avatar David Büchler
Browse files

If there's many duplicates in one cluster, the table in the duplicates...

If there's many duplicates in one cluster, the table in the duplicates overview broke the readability of the table
It's now restricted to 4 records. If there are more a ", ..." gets added instead of the rest of the records
parent 0af4c1db
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,7 @@ else
let duplicateInfos = db.table(duplicateInfosQuery);
let MAX_SHOW_CLUSTER_RECORDS = 4;
let recordClusterId = "";
let recordDescription = "";
let recordDuplicateInClusterCount = 0;
......@@ -87,7 +88,10 @@ else
//otherwise write the clusters record an start a new record.
if(recordClusterId == currentClusterId)
{
recordDescription += ", " + currentDescription;
if(recordDuplicateInClusterCount < MAX_SHOW_CLUSTER_RECORDS)
recordDescription += ", " + currentDescription;
if(recordDuplicateInClusterCount == MAX_SHOW_CLUSTER_RECORDS)
recordDescription += ", ..."
recordDuplicateInClusterCount++;
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment