This commit is contained in:
tree 2023-02-03 01:45:55 +01:00
rodič def0074795
revize 578890a72b
2 změnil soubory, kde provedl 3 přidání a 3 odebrání

Zobrazit soubor

@ -16,7 +16,7 @@
const collections = [
{ title: 'Days', value: 10, col: 'schedule' },
{ title: 'Events', col: 'events' },
{ title: 'Events', col: 'events', filter: e => !e.hidden },
{ title: 'Speakers', col: 'speakers' },
{ title: 'Places', col: 'places' },
{ title: 'Media Partners', col: 'media-partners' },
@ -38,7 +38,7 @@
<button
class="border rounded border-pbw-red hover:bg-pbw-red hover:text-white py-2 px-2 text-pbw-red hover:shadow-lg"
>
{cd.value || data.bundle[cd.col]?.length}
{cd.value || data.bundle[cd.col]?.filter(cd.filter || (e => e)).length}
{cd.title}
</button>
</a>

Zobrazit soubor

@ -72,7 +72,7 @@
<div class="max-w-7xl mx-auto pt-5 md:pt-10">
<div class="mx-4 xl:mx-0">
<h2 class="text-2xl uppercase font-bold pbw-text-color-secondary">
{tc.title} ({processedItems.length})
{tc.title} ({processedItems.filter(e => !e.hidden).length})
</h2>
<div class="text-xl mt-6 pbw-text-color-base">
<table class="w-full table-auto">