diff --git a/components/DocumentDisplay.vue b/components/DocumentDisplay.vue
index 729b5d0..cdb2702 100644
--- a/components/DocumentDisplay.vue
+++ b/components/DocumentDisplay.vue
@@ -106,7 +106,7 @@ const updateDocumentAssignment = async () => {
{
aspect-ratio: 1/ 1.414;
}
+.previewImg {
+ object-fit: contain;
+}
+
\ No newline at end of file
diff --git a/components/DocumentDisplayModal.vue b/components/DocumentDisplayModal.vue
index e03bdf4..67aefd5 100644
--- a/components/DocumentDisplayModal.vue
+++ b/components/DocumentDisplayModal.vue
@@ -167,7 +167,7 @@ const moveFile = async () => {
class="bigPreview"
:data="`${props.documentData.url}#toolbar=0&navpanes=0&scrollbar=0`"
type="application/pdf"
- v-if="!props.documentData.filetags.includes('Bild')"
+ v-if="props.documentData.path.includes('pdf')"
/>
{
uploadModalOpen.value = false;
uploadInProgress.value = false;
+ emit("uploadFinished")
}
@@ -74,6 +77,7 @@ const uploadFiles = async () => {
type="file"
id="fileUploadInput"
multiple
+ accept="image/jpeg, image/png, image/gif, application/pdf"
/>
{
diff --git a/pages/standardEntity/[type]/[[mode]]/[[id]].vue b/pages/standardEntity/[type]/[[mode]]/[[id]].vue
index cb3af67..0a5d969 100644
--- a/pages/standardEntity/[type]/[[mode]]/[[id]].vue
+++ b/pages/standardEntity/[type]/[[mode]]/[[id]].vue
@@ -13,6 +13,7 @@ const items = ref([])
const item = ref({})
const setupPage = async () => {
+ console.log('setupPage')
if(route.params.mode) mode.value = route.params.mode
if(mode.value === "show") {
@@ -48,6 +49,8 @@ setupPage()
v-if="loaded && mode === 'show'"
:type="route.params.type"
:item="item"
+ @updateNeeded="setupPage"
+ :key="item"
/>