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">
|
<Button url="/locations" text="Change location" class="shadow-small">
|
||||||
<IconEarth />
|
<IconEarth />
|
||||||
</Button>
|
</Button>
|
||||||
<Button url="/shop/poster-{location.slug}" text="Buy the poster" color="pinklight" class="shadow-small">
|
|
||||||
<!-- <IconEarth /> -->
|
{#if location.has_poster}
|
||||||
</Button>
|
<Button url="/shop/poster-{location.slug}" text="Buy the poster" color="pinklight" class="shadow-small">
|
||||||
|
<!-- <IconEarth /> -->
|
||||||
|
</Button>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -254,6 +257,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
country { name }
|
country { name }
|
||||||
|
has_poster
|
||||||
}
|
}
|
||||||
|
|
||||||
photos: photo (
|
photos: photo (
|
||||||
|
|||||||
Reference in New Issue
Block a user