{#if $user && $user.is_admin} {#await getPromos() then promos}
{/await} {/if}

Catégories // cours

{#await getCategories()}
Chargement des catégories …
{:then categories} {#each categories.filter((c) => (filterPromo === "" || filterPromo === c.promo)) as c (c.id)} {/each}
ID Nom Promo Étendre
{c.id} {c.label} {c.promo} {c.expand?"Oui":"Non"}
{/await}