Add option to enable or disable Shop button

This commit is contained in:
2021-10-15 22:20:12 +02:00
parent 3af8f7c37c
commit 99cc1bc661
2 changed files with 8 additions and 5 deletions

View File

@@ -20,11 +20,13 @@
<div class="shop__content">
<h3 class="title-medium">{shop.module_title}</h3>
<p class="text-small">{shop.module_text}</p>
<Button
url="/shop"
text="Shop"
class="button--pink"
/>
{#if shop.enabled}
<Button
url="/shop"
text="Shop"
class="button--pink"
/>
{/if}
<p class="detail">
Posters available for {locationsWithPoster.join(', ').replace(/,(?!.*,)/gmi, ' and')}.
</p>