From c4c641598137df56c0ae7d24c5b516b40a1df393 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Wed, 4 Dec 2024 10:53:58 -0500 Subject: [PATCH] ListPairs Usability - don't attempt failed auto-pair initially. It results in hiding all the data and a scary red messages when the user did literally nothing wrong. I think this is single biggest issue - it makes it seem like you cannot just manually pair these quickly. --- .../components/Collections/PairedListCollectionCreator.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/components/Collections/PairedListCollectionCreator.vue b/client/src/components/Collections/PairedListCollectionCreator.vue index e6cd629ea75a..1287d64b7f01 100644 --- a/client/src/components/Collections/PairedListCollectionCreator.vue +++ b/client/src/components/Collections/PairedListCollectionCreator.vue @@ -243,8 +243,11 @@ function initialFiltersSet() { illumina++; } }); - - if (illumina > dot12s && illumina > Rs) { + // if we cannot filter don't set an initial filter and hide all the data + if (illumina == 0 && dot12s == 0 && Rs == 0) { + forwardFilter.value = ""; + reverseFilter.value = ""; + } else if (illumina > dot12s && illumina > Rs) { changeFilters("illumina"); } else if (dot12s > illumina && dot12s > Rs) { changeFilters("dot12s");