mirror of
https://github.com/coder/coder.git
synced 2026-10-28 02:42:54 +08:00
feat: improve custom roles create/edit page (#14456)
* fix: improve show/hide checkbox text * feat: add parent checkbox for grouped resource permissions * fix: align action list item to a grid * chore: add additional tests * fix: format
This commit is contained in:
@@ -392,6 +392,21 @@ export const MockRoleWithOrgPermissions: TypesGen.Role = {
|
||||
user_permissions: [],
|
||||
};
|
||||
|
||||
export const MockRole2WithOrgPermissions: TypesGen.Role = {
|
||||
name: "my-role-1",
|
||||
display_name: "My Role 1",
|
||||
organization_id: MockOrganization.id,
|
||||
site_permissions: [],
|
||||
organization_permissions: [
|
||||
{
|
||||
negate: false,
|
||||
resource_type: "audit_log",
|
||||
action: "create",
|
||||
},
|
||||
],
|
||||
user_permissions: [],
|
||||
};
|
||||
|
||||
// assignableRole takes a role and a boolean. The boolean implies if the
|
||||
// actor can assign (add/remove) the role from other users.
|
||||
export function assignableRole(
|
||||
|
||||
Reference in New Issue
Block a user