diff --git a/web/js/pnp.js b/web/js/pnp.js index 0f69b5e8..96ea4263 100644 --- a/web/js/pnp.js +++ b/web/js/pnp.js @@ -278,7 +278,7 @@ var imported_cards = {}; else return o1.type.code > o2.type.code? 1 : -1; }); } - + imported_cards.clear_all = function() { imported_cards.entries = []; imported_cards.errors = []; @@ -346,7 +346,7 @@ function build_one_line(imported_entry) { elem.append(``); elem.append(``); elem.append(' x '); - var a = $(`` + + var a = $(`` + `${strikethrough? '' : ''}${card.title}${strikethrough? '' : ''} `); if(!imported_entry.enabled) { a[0].classList.add("text-muted"); @@ -480,8 +480,11 @@ function update_stats() { var html = ''; $.each(types, function (key, value) { size+=value; - key = key == "Identity"? "Identities" : key + 's'; - html += value+' '+key+'
'; + let cardType = key; + if (!['Identity', 'Ice'].includes(cardType) && value > 1) { + cardType = cardType + 's'; + } + html += value + ' ' + cardType + '
'; }); html = '
' + html; if(imported_cards.get_disabled().length) {