Skip to content
Snippets Groups Projects
Commit 446f53e9 authored by Erik Borgeteien Hansen's avatar Erik Borgeteien Hansen
Browse files

Merge branch 'remove-log-from-main' into 'main'

Remove log from main

See merge request !56
parents 439bcbf5 3a21ed6c
No related branches found
No related tags found
1 merge request!56Remove log from main
Pipeline #177692 failed
......@@ -262,44 +262,26 @@ export default {
removeImage: function () {
this.group.images.pop();
this.imageThere = false;
console.log("Bilder nå: " + this.group.images.length);
},
checkRadioButton: function (event) {
this.group.radio = event.target.value;
console.log(this.group.radio);
if (this.group.radio == null || this.group.radio == "Åpen") {
this.group.visibility = 1;
} else {
this.group.visibility = 0;
}
console.log("visibility: " + this.group.visibility);
},
checkValidation: function () {
console.log("sjekker validering");
this.v$.group.$touch();
if (this.v$.group.$invalid) {
console.log("Invalid, avslutter...");
return false;
}
console.log("validert!");
return true;
},
async saveClicked() {
console.log("Attempting to save item");
if (this.checkValidation()) {
console.log("validert, videre...");
console.log("Navn: " + this.group.name);
console.log("Sted: " + this.group.place);
console.log("Synlighet: " + this.group.radio);
console.log("Beskrivelse: " + this.group.description);
console.log("bilder: " + this.group.images);
const groupInfo = {
name: this.group.name,
description: this.group.description,
......@@ -308,18 +290,13 @@ export default {
picture: "",
};
console.log(groupInfo);
const postCreatedGroup = await postNewgroup(groupInfo);
console.log(postCreatedGroup);
await postNewgroup(groupInfo);
}
},
addImage: function (event) {
console.log(event.target.files);
this.group.images.push(URL.createObjectURL(event.target.files[0]));
console.log("antall bilder: " + this.group.images.length);
this.imageThere = true;
console.log("image: " + this.imageThere);
},
},
};
......
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