mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
renaming: name to repoName if repo name is meant; usage of create loading
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user