diff --git a/src/components/CommunityComponents/NewCommunityForm.vue b/src/components/CommunityComponents/NewCommunityForm.vue index 3784e50b8ee43c15553a74f49b10e55dffb33e7f..200db5b1a33be506325ffbb4fe7a15d2ec2a472b 100644 --- a/src/components/CommunityComponents/NewCommunityForm.vue +++ b/src/components/CommunityComponents/NewCommunityForm.vue @@ -136,10 +136,10 @@ <!-- Images --> <div class="mt-6"> <label - class="block mb-2 text-xl font-medium text-gray-900 dark:text-gray-400" - id="imageLabel" + class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400" + id="imageLabel" > - Bilde + Bilde (bildet må være .png) </label> <input @@ -148,7 +148,7 @@ style="display: none" @change="addImage" multiple - accept="image/png, image/jpeg" + accept="image/png" /> <!-- Button for adding an image --> diff --git a/src/components/ItemComponents/NewItemForm.vue b/src/components/ItemComponents/NewItemForm.vue index 4e5fff4a64e1b606296963dcbbaefbcd71838703..e4d1a493510864e78a670bff25f61c2461b29d14 100644 --- a/src/components/ItemComponents/NewItemForm.vue +++ b/src/components/ItemComponents/NewItemForm.vue @@ -187,7 +187,7 @@ class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400" id="imageLabel" > - Bilder + Bilder (bildene må være .png) </label> <input @@ -196,7 +196,7 @@ style="display: none" @change="addImage" multiple - accept="image/png, image/jpeg" + accept="image/png" /> <Button :text="'Velg bilde'" @click="$refs.file.click()" /> @@ -349,7 +349,6 @@ export default { this.item.userId = parseInt(user.accountId); }, - //Not sure this method works addImage: async function (event) { this.item.images.push(URL.createObjectURL(event.target.files[0]));