diff --git a/scm-ui/src/groups/components/GroupForm.js b/scm-ui/src/groups/components/GroupForm.js index fca001a65f..00904112bc 100644 --- a/scm-ui/src/groups/components/GroupForm.js +++ b/scm-ui/src/groups/components/GroupForm.js @@ -2,7 +2,7 @@ import React from "react"; import InputField from "../../components/forms/InputField"; -import { SubmitButton } from "../../components/buttons"; +import { SubmitButton, Button } from "../../components/buttons"; import { translate } from "react-i18next"; import type { Group } from "../types/Group"; import * as validator from "./groupValidation"; @@ -16,6 +16,7 @@ type Props = { type State = { group: Group, + userToAdd: string, nameValidationError: boolean }; @@ -33,7 +34,8 @@ class GroupForm extends React.Component { members: [], type: "" }, - nameValidationError: false + nameValidationError: false, + userToAdd: "" }; } @@ -67,7 +69,7 @@ class GroupForm extends React.Component { } }; - render() { +render() { const { t, loading } = this.props; const group = this.state.group let nameField = null; @@ -93,11 +95,53 @@ class GroupForm extends React.Component { value={group.description} validationError={false} /> + + + + {this.state.group.members.map((user, index) => { + return + + + + })} + +
{user}
+ + +