Shop Location page poster button only if existing

This commit is contained in:
2021-11-17 19:26:46 +01:00
parent ac40eedb2f
commit 4714c111ca

View File

@@ -145,9 +145,12 @@
<Button url="/locations" text="Change location" class="shadow-small">
<IconEarth />
</Button>
{#if location.has_poster}
<Button url="/shop/poster-{location.slug}" text="Buy the poster" color="pinklight" class="shadow-small">
<!-- <IconEarth /> -->
</Button>
{/if}
</div>
</div>
</div>
@@ -254,6 +257,7 @@
}
}
country { name }
has_poster
}
photos: photo (