ui: Hide tags with less than 2 exercices

This commit is contained in:
nemunaire 2023-03-20 14:50:26 +01:00
parent fd7f6d0c63
commit b8c5ec6725

View File

@ -28,7 +28,7 @@
>
<div>
{#each Object.keys($tags).sort(function (a, b) { return a.toLowerCase().localeCompare(b.toLowerCase()); }) as itag, index}
{#if filter === "" || itag.toLowerCase().indexOf(filter.toLowerCase()) >= 0}
{#if (filter === "" && $tags[itag].count > 1) || (filter !== "" && itag.toLowerCase().indexOf(filter.toLowerCase()) >= 0)}
<DropdownItem href="tags/{itag}">
#{itag}
<Badge>