mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +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>
|
||||
);
|
||||
|
||||
@@ -8,13 +8,13 @@ import { DeleteButton } from "../../../components/buttons/index";
|
||||
type Props = {
|
||||
permission: Permission,
|
||||
namespace: string,
|
||||
name: string,
|
||||
repoName: string,
|
||||
confirmDialog?: boolean,
|
||||
t: string => string,
|
||||
deletePermission: (
|
||||
permission: Permission,
|
||||
namespace: string,
|
||||
name: string
|
||||
repoName: string
|
||||
) => void,
|
||||
loading: boolean
|
||||
};
|
||||
@@ -28,7 +28,7 @@ class DeletePermissionButton extends React.Component<Props> {
|
||||
this.props.deletePermission(
|
||||
this.props.permission,
|
||||
this.props.namespace,
|
||||
this.props.name
|
||||
this.props.repoName
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user