display of external recipes

This commit is contained in:
vabene1111
2021-01-13 02:16:16 +01:00
parent 1bb412e007
commit bb43ed203a
9 changed files with 76 additions and 18 deletions

View File

@@ -0,0 +1,28 @@
<template>
<div>
<img :src="pdfUrl" width="100%" height="700px" :alt="_('External Recipe Image')">
</div>
</template>
<script>
import {GettextMixin, resolveDjangoUrl} from "@/utils/utils";
export default {
name: 'ImageViewer',
mixins: [
GettextMixin,
],
props: {
recipe: Object,
},
computed: {
pdfUrl: function() {
return resolveDjangoUrl('api_get_recipe_file', (this.recipe.id))
}
},
}
</script>