diff --git a/frontend/src/routes/(authenticated)/project/[project_code]/+page.ts b/frontend/src/routes/(authenticated)/project/[project_code]/+page.ts
index 8f5efda05..4b0e32a74 100644
--- a/frontend/src/routes/(authenticated)/project/[project_code]/+page.ts
+++ b/frontend/src/routes/(authenticated)/project/[project_code]/+page.ts
@@ -16,6 +16,7 @@ import type {
LeaveProjectMutation,
Organization,
ProjectPageQuery,
+ RemoveProjectFromOrgMutation,
SetProjectConfidentialityInput,
SetProjectConfidentialityMutation,
SetRetentionPolicyInput,
@@ -346,6 +347,30 @@ export async function _changeProjectDescription(input: ChangeProjectDescriptionI
return result;
}
+export async function _removeProjectFromOrg(projectId: string, orgId: string): $OpResult {
+ //language=GraphQL
+ const result = await getClient()
+ .mutation(
+ graphql(`
+ mutation RemoveProjectFromOrg($input: RemoveProjectFromOrgInput!) {
+ removeProjectFromOrg(input: $input) {
+ organization {
+ id
+ }
+ errors {
+ __typename
+ ... on Error {
+ message
+ }
+ }
+ }
+ }
+ `),
+ { input: { projectId: projectId, orgId: orgId } }
+ );
+ return result;
+}
+
export async function _setProjectConfidentiality(input: SetProjectConfidentialityInput): $OpResult {
//language=GraphQL
const result = await getClient()
diff --git a/frontend/src/routes/(authenticated)/project/[project_code]/MembersList.svelte b/frontend/src/routes/(authenticated)/project/[project_code]/MembersList.svelte
index 3cf3e8232..1cdb0e1a3 100644
--- a/frontend/src/routes/(authenticated)/project/[project_code]/MembersList.svelte
+++ b/frontend/src/routes/(authenticated)/project/[project_code]/MembersList.svelte
@@ -138,6 +138,7 @@
{/if}
+