feat: edit, delete project/workspaces member workflow, order issues by priority

This commit is contained in:
Dakshesh Jain
2022-12-06 10:11:56 +05:30
parent b757609161
commit 7ad10e8e1e
17 changed files with 540 additions and 116 deletions

View File

@@ -11,19 +11,12 @@ import useUser from "./useUser";
import { IssuePriorities, Properties } from "types";
const initialValues: Properties = {
name: true,
key: true,
parent: false,
project: false,
state: true,
assignee: true,
description: false,
priority: false,
start_date: false,
target_date: false,
sequence_id: false,
attachments: false,
children: false,
cycle: false,
};

View File

@@ -124,12 +124,14 @@ class ProjectServices extends APIService {
throw error?.response?.data;
});
}
async updateProjectMember(
workspace_slug: string,
project_id: string,
memberId: string
memberId: string,
data: any
): Promise<any> {
return this.put(PROJECT_MEMBER_DETAIL(workspace_slug, project_id, memberId))
return this.put(PROJECT_MEMBER_DETAIL(workspace_slug, project_id, memberId), data)
.then((response) => {
return response?.data;
})
@@ -137,6 +139,7 @@ class ProjectServices extends APIService {
throw error?.response?.data;
});
}
async deleteProjectMember(
workspace_slug: string,
project_id: string,

View File

@@ -111,8 +111,9 @@ class WorkspaceService extends APIService {
throw error?.response?.data;
});
}
async updateWorkspaceMember(workspace_slug: string, memberId: string): Promise<any> {
return this.put(WORKSPACE_MEMBER_DETAIL(workspace_slug, memberId))
async updateWorkspaceMember(workspace_slug: string, memberId: string, data: any): Promise<any> {
return this.put(WORKSPACE_MEMBER_DETAIL(workspace_slug, memberId), data)
.then((response) => {
return response?.data;
})
@@ -120,6 +121,7 @@ class WorkspaceService extends APIService {
throw error?.response?.data;
});
}
async deleteWorkspaceMember(workspace_slug: string, memberId: string): Promise<any> {
return this.delete(WORKSPACE_MEMBER_DETAIL(workspace_slug, memberId))
.then((response) => {