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

remove console log, change route to community home after creation, add admin...

remove console log, change route to community home after creation, add admin status when create group
parent a9ccddf5
No related branches found
No related tags found
1 merge request!144remove console log, change route to community home after creation, add admin...
Pipeline #181988 passed
...@@ -278,12 +278,13 @@ export default { ...@@ -278,12 +278,13 @@ export default {
location: this.group.place, location: this.group.place,
picture: this.group.image, picture: this.group.image,
}; };
console.log(this.group.image);
const respone = await postNewgroup(groupInfo); const respone = await postNewgroup(groupInfo);
if (respone.status === 200 || respone.status === 201) { if (respone.status === 200 || respone.status === 201) {
this.$router.push({ path: "/", replace: true }); this.$store.commit("addAdmin", respone.data);
this.$router.push({
path: "/community/" + respone.data,
replace: true,
});
} }
} }
}, },
......
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