create EditRepoRoles

This commit is contained in:
Eduard Heimbuch
2019-05-15 17:30:42 +02:00
parent 60cf070c44
commit 394c1f53d4
4 changed files with 98 additions and 19 deletions

View File

@@ -49,6 +49,9 @@ class RepositoryRoleForm extends React.Component<Props, State> {
componentDidMount() {
const { fetchAvailableVerbs, verbsLink} = this.props;
fetchAvailableVerbs(verbsLink);
if (this.props.role) {
this.setState({role: this.props.role})
}
}
isFalsy(value) {