Shop Location page poster button only if existing
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user