diff --git a/frontend/src/components/buttons/GroupButtons.vue b/frontend/src/components/buttons/GroupButtons.vue index 72604ff7..2f99d9aa 100644 --- a/frontend/src/components/buttons/GroupButtons.vue +++ b/frontend/src/components/buttons/GroupButtons.vue @@ -1,20 +1,11 @@ @@ -83,6 +74,17 @@ const leaveGroupAndRedirect = async () => { await leaveGroup({ groupId: group.value.id, projectId: project.value.id }); router.push(`/project/${project.value.id}/groups`); }; + +const removeGroupAndRedirect = async () => { + await removeGroup({ groupId: group.value.id, projectId: project.value.id }); + router.push(`/project/${project.value.id}/groups`); +}; - + diff --git a/frontend/src/components/home/cards/GroupCard.vue b/frontend/src/components/groups/GroupCard.vue similarity index 57% rename from frontend/src/components/home/cards/GroupCard.vue rename to frontend/src/components/groups/GroupCard.vue index 140eb0e6..accb4964 100644 --- a/frontend/src/components/home/cards/GroupCard.vue +++ b/frontend/src/components/groups/GroupCard.vue @@ -1,15 +1,16 @@