Add Shop module at end of Location page

With linked poster if existing, otherwise with all products
This commit is contained in:
2022-07-30 10:28:51 +02:00
parent 31351ae095
commit b058963b79
6 changed files with 70 additions and 36 deletions

View File

@@ -25,7 +25,7 @@
export let url: string = '/shop'
export let enabled: boolean = true
if (textBottom !== null && textBottom !== undefined) {
if (textBottom !== null) {
textBottom = `Posters available for ${locationsWithPoster.join(', ').replace(/,(?!.*,)/gmi, ' and')}.`
}