From d24bf1357bcdf5f7e058061e8966547e9d764655 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Fri, 8 Dec 2023 16:24:14 +0100 Subject: [PATCH] Fix member actions --- frontend/src/components/modals/MemberLeaveModal.vue | 2 +- frontend/src/components/projects/MemberList.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/modals/MemberLeaveModal.vue b/frontend/src/components/modals/MemberLeaveModal.vue index d5c34217..78087feb 100644 --- a/frontend/src/components/modals/MemberLeaveModal.vue +++ b/frontend/src/components/modals/MemberLeaveModal.vue @@ -23,7 +23,7 @@ const router = useRouter(); const name = props.organization ? props.author : props.slug; function leave() { - const url = props.organization ? `organizations/org/${props.author}/members/leave` : `projects/project/${props.author}/${props.slug}/members/leave`; + const url = props.organization ? `organizations/org/${props.author}/members/leave` : `projects/project/${props.slug}/members/leave`; useInternalApi(url, "post") .then(() => router.go(0)) .catch((e) => handleRequestError(e)); diff --git a/frontend/src/components/projects/MemberList.vue b/frontend/src/components/projects/MemberList.vue index 9c6411f9..0e0f91f5 100644 --- a/frontend/src/components/projects/MemberList.vue +++ b/frontend/src/components/projects/MemberList.vue @@ -92,7 +92,7 @@ function cancelTransfer() { } saving.value = true; - const url = props.organization ? `organizations/org/${props.author}/canceltransfer` : `projects/project/${props.author}/${props.slug}/canceltransfer`; + const url = props.organization ? `organizations/org/${props.author}/canceltransfer` : `projects/project/${props.slug}/canceltransfer`; useInternalApi(url, "post") .then(() => router.go(0)) .catch((e) => handleRequestError(e)) @@ -122,7 +122,7 @@ function post(member: EditableMember, action: "edit" | "add" | "remove") { } saving.value = true; - const url = props.organization ? `organizations/org/${props.author}/members/${action}` : `projects/project/${props.author}/${props.slug}/members/${action}`; + const url = props.organization ? `organizations/org/${props.author}/members/${action}` : `projects/project/${props.slug}/members/${action}`; useInternalApi(url, "post", member) .then(() => { router.go(0);