Skip to content

Commit

Permalink
Fixed issue with groups
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jun 13, 2022
1 parent 48bd6d8 commit 1eb9a5d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ui/src/app/admin/Groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function Groups() {
<Route path={`${path}/:id/edit`} render={() =>
<EditGroup />
} />
<Route path={`${path}`} exact render={
<Route path={`${path}`} exact render={() =>
<Redirect to={`${url}/list`} />
} />
</Switch>
Expand Down
5 changes: 3 additions & 2 deletions ui/src/app/admin/component/AccessRequest.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import Button from 'react-bootstrap/Button';
import Form from 'react-bootstrap/Form';
import Translate from '../../i18n/components/translate';

export function AccessRequest({ users, roles, onDeleteUser, onChangeUserRole }) {
Expand Down Expand Up @@ -40,12 +41,12 @@ export function AccessRequest({ users, roles, onDeleteUser, onChangeUserRole })
<Translate value="label.role">Role</Translate>
</label>
<div className="col">
<select id={`role-${i}`} name={user.username} value={user.role} className="form-control form-control-sm"
<Form.Select id={`role-${i}`} name={user.username} value={user.role} className="form-control form-control-sm"
disablevalidation="true" onChange={(event) => onChangeUserRole(user, event.target.value)}>
{roles.map((role, ridx) =>
<option value={role} key={ridx}>{ role }</option>
)}
</select>
</Form.Select>
</div>
</div>
</div>
Expand Down
9 changes: 5 additions & 4 deletions ui/src/app/admin/component/UserMaintenance.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faTrash } from '@fortawesome/free-solid-svg-icons';
import Button from 'react-bootstrap/Button';
import Form from 'react-bootstrap/Form';
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
import Tooltip from 'react-bootstrap/Tooltip';

Expand Down Expand Up @@ -41,7 +42,7 @@ export default function UserMaintenance({ users, roles, loading, onDeleteUser, o
<td className="align-middle">{user.emailAddress}</td>
<td className="align-middle">
<label htmlFor={`role-${user.username}`} className="sr-only"><Translate value="action.user-role">User role</Translate></label>
<select
<Form.Select
id={`role-${user.username}`}
name={`role-${user.username}`}
className="form-control"
Expand All @@ -52,7 +53,7 @@ export default function UserMaintenance({ users, roles, loading, onDeleteUser, o
{roles.map((role, ridx) => (
<option key={role} value={role}>{role}</option>
))}
</select>
</Form.Select>
</td>
<td className="align-middle">
<OverlayTrigger
Expand All @@ -62,7 +63,7 @@ export default function UserMaintenance({ users, roles, loading, onDeleteUser, o
}>
<span className="d-block">
<label htmlFor={`group-${user.username}`} className="sr-only"><Translate value="action.user-group">User group</Translate></label>
<select
<Form.Select
id={`group-${user.username}`}
name={`group-${user.username}`}
className="form-control"
Expand All @@ -74,7 +75,7 @@ export default function UserMaintenance({ users, roles, loading, onDeleteUser, o
{groups.map((g, ridx) => (
<option key={ridx} value={g.resourceId}>{g.name}</option>
))}
</select>
</Form.Select>
</span>
</OverlayTrigger>

Expand Down
2 changes: 1 addition & 1 deletion ui/src/setupProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function (app) {

const port = 10101;
const port = 8080;

app.use(
'/api',
Expand Down

0 comments on commit 1eb9a5d

Please sign in to comment.