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

View File

@@ -78,6 +78,7 @@
} }
shop { shop {
enabled
module_title module_title
module_text module_text
module_image { module_image {