diff --git a/public/no-image.svg b/public/no-image.svg new file mode 100644 index 0000000..097233d --- /dev/null +++ b/public/no-image.svg @@ -0,0 +1,168 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + Kein Bild vorhanden + + diff --git a/src/flaschengeist.d.ts b/src/flaschengeist.d.ts index a081c23..8956465 100644 --- a/src/flaschengeist.d.ts +++ b/src/flaschengeist.d.ts @@ -82,6 +82,7 @@ declare namespace FG { tags?: Array; type?: DrinkType; volumes: Array; + uuid: string; } interface DrinkIngredient { id: number; diff --git a/src/plugins/pricelist/components/CalculationTable.vue b/src/plugins/pricelist/components/CalculationTable.vue index 5e26945..7c59483 100644 --- a/src/plugins/pricelist/components/CalculationTable.vue +++ b/src/plugins/pricelist/components/CalculationTable.vue @@ -60,10 +60,17 @@ /> + + :src="drinks_props.row.uuid ? `/api/pricelist/picture/${drinks_props.row.uuid}?size=256`: 'no-image.svg'" + placeholder-src='no-image.svg' + > + +