renaming: name to repoName if repo name is meant; usage of create loading

This commit is contained in:
Maren Süwer
2018-08-30 12:11:31 +02:00
parent 961cbd9f90
commit 2e16186034
7 changed files with 186 additions and 117 deletions

View File

@@ -8,7 +8,8 @@ import { SubmitButton } from "../../components/buttons";
type Props = {
t: string => string,
createPermission: (permission: Permission) => void
createPermission: (permission: Permission) => void,
loading: boolean
};
type State = {
@@ -29,7 +30,7 @@ class CreatePermissionForm extends React.Component<Props, State> {
}
render() {
const { t } = this.props;
const { t, loading } = this.props;
const { name, type, groupPermission } = this.state;
return (
@@ -71,6 +72,7 @@ class CreatePermissionForm extends React.Component<Props, State> {
<SubmitButton
label={t("add-permission.submit-button")}
action={this.submit}
loading={loading}
/>
</div>
);