mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
solved problem with not returning header by using self build url
This commit is contained in:
@@ -39,7 +39,7 @@ type Props = {
|
||||
permission: PermissionEntry,
|
||||
namespace: string,
|
||||
repoName: string,
|
||||
callback: () => void
|
||||
callback?: () => void
|
||||
) => void,
|
||||
createPermissionReset: (string, string) => void,
|
||||
|
||||
@@ -62,20 +62,11 @@ class Permissions extends React.Component<Props> {
|
||||
fetchPermissions(namespace, repoName);
|
||||
}
|
||||
|
||||
permissionCreated = () => {
|
||||
const { namespace, repoName, history } = this.props;
|
||||
console.log("fetch permissions!");
|
||||
//history.push(`/repo/${namespace}/${repoName}/permissions`);
|
||||
this.props.fetchPermissions(namespace, repoName);
|
||||
};
|
||||
|
||||
createPermission = (permission: Permission) => {
|
||||
console.log("create Permission");
|
||||
this.props.createPermission(
|
||||
permission,
|
||||
this.props.namespace,
|
||||
this.props.repoName,
|
||||
this.permissionCreated
|
||||
this.props.repoName
|
||||
);
|
||||
};
|
||||
|
||||
@@ -175,7 +166,7 @@ const mapDispatchToProps = dispatch => {
|
||||
permission: PermissionEntry,
|
||||
namespace: string,
|
||||
repoName: string,
|
||||
callback: () => void
|
||||
callback?: () => void
|
||||
) => {
|
||||
dispatch(createPermission(permission, namespace, repoName, callback));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user