Skip to content

Commit

Permalink
Moved AddUser from modal to screen (#1869)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
  • Loading branch information
jinapurapu and dvaldivia committed Apr 23, 2022
1 parent fda090f commit 66df609
Show file tree
Hide file tree
Showing 9 changed files with 437 additions and 335 deletions.
3 changes: 3 additions & 0 deletions portal-ui/src/common/SecureComponent/permissions.ts
Expand Up @@ -120,6 +120,7 @@ export const IAM_PAGES = {
IDENTITY: "/identity",
USERS: "/identity/users",
USERS_VIEW: "/identity/users/:userName+",
USER_ADD: "/identity/add-user",
GROUPS: "/identity/groups",
GROUPS_ADD: "/identity/create-group",
GROUPS_VIEW: "/identity/groups/:groupName+",
Expand Down Expand Up @@ -313,6 +314,8 @@ export const IAM_PAGES_PERMISSIONS = {
IAM_SCOPES.ADMIN_DISABLE_USER,
IAM_SCOPES.ADMIN_DELETE_USER,
],
[IAM_PAGES.USER_ADD]: [
IAM_SCOPES.ADMIN_CREATE_USER,], // displays create user button
[IAM_PAGES.ACCOUNT_ADD]: [
IAM_SCOPES.ADMIN_CREATE_SERVICEACCOUNT,
],
Expand Down
4 changes: 4 additions & 0 deletions portal-ui/src/screens/Console/Console.tsx
Expand Up @@ -281,6 +281,10 @@ const Console = ({
component: Users,
path: IAM_PAGES.USERS_VIEW,
},
{
component: Users,
path: IAM_PAGES.USER_ADD,
},
{
component: Users,
path: IAM_PAGES.USERS,
Expand Down
2 changes: 1 addition & 1 deletion portal-ui/src/screens/Console/Policies/PolicySelectors.tsx
Expand Up @@ -145,7 +145,7 @@ const PolicySelectors = ({
<span className={classes.fieldLabel}>Assign Policies</span>
<div className={classes.searchBox}>
<SearchBox
placeholder="Filter Policy"
placeholder="Start typing to search for a Policy"
onChange={(value) => {
setFilter(value);
}}
Expand Down
311 changes: 0 additions & 311 deletions portal-ui/src/screens/Console/Users/AddUser.tsx

This file was deleted.

0 comments on commit 66df609

Please sign in to comment.