Skip to content
Snippets Groups Projects
Commit 875dcfaf authored by Zara Mudassar's avatar Zara Mudassar
Browse files

Images instructions added

parent afb3b388
No related branches found
No related tags found
1 merge request!118Images
...@@ -136,10 +136,10 @@ ...@@ -136,10 +136,10 @@
<!-- Images --> <!-- Images -->
<div class="mt-6"> <div class="mt-6">
<label <label
class="block mb-2 text-xl font-medium text-gray-900 dark:text-gray-400" class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400"
id="imageLabel" id="imageLabel"
> >
Bilde Bilde (bildet må være .png)
</label> </label>
<input <input
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
style="display: none" style="display: none"
@change="addImage" @change="addImage"
multiple multiple
accept="image/png, image/jpeg" accept="image/png"
/> />
<!-- Button for adding an image --> <!-- Button for adding an image -->
......
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400" class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400"
id="imageLabel" id="imageLabel"
> >
Bilder Bilder (bildene må være .png)
</label> </label>
<input <input
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
style="display: none" style="display: none"
@change="addImage" @change="addImage"
multiple multiple
accept="image/png, image/jpeg" accept="image/png"
/> />
<Button :text="'Velg bilde'" @click="$refs.file.click()" /> <Button :text="'Velg bilde'" @click="$refs.file.click()" />
...@@ -349,7 +349,6 @@ export default { ...@@ -349,7 +349,6 @@ export default {
this.item.userId = parseInt(user.accountId); this.item.userId = parseInt(user.accountId);
}, },
//Not sure this method works
addImage: async function (event) { addImage: async function (event) {
this.item.images.push(URL.createObjectURL(event.target.files[0])); this.item.images.push(URL.createObjectURL(event.target.files[0]));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment