- Notifications
You must be signed in to change notification settings - Fork929
feat: add delete custom role context menu button and modal#14228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -601,20 +601,20 @@ class ApiMethods { | ||
}; | ||
patchOrganizationRole = async ( | ||
organization: string, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. can you copy-paste the doc comment a lot of these other org functions have? it's a minor thing, but I like the easily accessible reassurance that it can be the id or the name 😄 | ||
role: TypesGen.Role, | ||
): Promise<TypesGen.Role> => { | ||
const response = await this.axios.patch<TypesGen.Role>( | ||
`/api/v2/organizations/${organization}/members/roles`, | ||
role, | ||
); | ||
return response.data; | ||
}; | ||
deleteOrganizationRole = async (organization: string, roleName: string) => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. same for this function pls | ||
await this.axios.delete( | ||
`/api/v2/organizations/${organization}/members/roles/${roleName}`, | ||
); | ||
}; | ||
Uh oh!
There was an error while loading.Please reload this page.