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 @@ ...@@ -9,7 +9,7 @@
</template> </template>
<script> <script>
// import CommunityAdminService from "@/services/community-admin.service"; import CommunityAdminService from "@/services/community-admin.service";
import IconButton from "@/components/BaseComponents/IconButton.vue"; import IconButton from "@/components/BaseComponents/IconButton.vue";
//TODO: OPEN CONFIRMATION DIALOG WHEN DELETING //TODO: OPEN CONFIRMATION DIALOG WHEN DELETING
...@@ -20,8 +20,7 @@ export default { ...@@ -20,8 +20,7 @@ export default {
}, },
methods: { methods: {
deleteCommunity() { deleteCommunity() {
console.log("DELETED"); CommunityAdminService.deleteCommunity(this.$route.params.communityID);
// CommunityAdminService.deleteCommunity(this.$route.params.communityID);
}, },
}, },
}; };
......
...@@ -60,7 +60,7 @@ class CommunityAdminService { ...@@ -60,7 +60,7 @@ class CommunityAdminService {
* @returns TODO * @returns TODO
*/ */
async deleteCommunity(communityID) { async deleteCommunity(communityID) {
return await axios.post( return await axios.delete(
API_URL + "communities/" + communityID + "/remove", API_URL + "communities/" + communityID + "/remove",
{ {
headers: tokenHeader(), headers: tokenHeader(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment