{ addingFilter = true; }} title="click this button to add a a filter" class="underline border-0" > Add a Filter
{#if addingFilter}
Column
{#each ['', ...Array.from(badgeTypes)].sort() as badge}
{badge}
{/each}
{/if} {#if badgeTypeSelect && addingFilter}
Value
{#each ['', ...options[badgeTypeSelect]].sort() as option}
{option}
{/each}
{/if} {#if optionSelected && badgeTypeSelect && addingFilter}
{ cb({badgeType: badgeTypeSelect, badgeValue: optionSelected}); badgeTypeSelect = false; addingFilter = false; optionSelected = false; }} > Add
{/if}