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

fix delete community

parent c9fb7a01
No related branches found
No related tags found
1 merge request!142Delete community
......@@ -9,7 +9,7 @@
</template>
<script>
// import CommunityAdminService from "@/services/community-admin.service";
import CommunityAdminService from "@/services/community-admin.service";
import IconButton from "@/components/BaseComponents/IconButton.vue";
//TODO: OPEN CONFIRMATION DIALOG WHEN DELETING
......@@ -20,8 +20,7 @@ export default {
},
methods: {
deleteCommunity() {
console.log("DELETED");
// CommunityAdminService.deleteCommunity(this.$route.params.communityID);
CommunityAdminService.deleteCommunity(this.$route.params.communityID);
},
},
};
......
......@@ -60,7 +60,7 @@ class CommunityAdminService {
* @returns TODO
*/
async deleteCommunity(communityID) {
return await axios.post(
return await axios.delete(
API_URL + "communities/" + communityID + "/remove",
{
headers: tokenHeader(),
......
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