Update counts
This commit is contained in:
parent
def0074795
commit
578890a72b
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue