mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
open group page after groupd is created
This commit is contained in:
@@ -68,11 +68,13 @@ class AddGroup extends React.Component<Props, State> {
|
||||
});
|
||||
});
|
||||
};
|
||||
groupCreated = () => {
|
||||
this.props.history.push("/groups");
|
||||
groupCreated = (group: Group) => {
|
||||
this.props.history.push("/group/" + group.name);
|
||||
};
|
||||
createGroup = (group: Group) => {
|
||||
this.props.createGroup(this.props.createLink, group, this.groupCreated);
|
||||
this.props.createGroup(this.props.createLink, group, () =>
|
||||
this.groupCreated(group)
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,6 @@ class AddUser extends React.Component<Props> {
|
||||
|
||||
userCreated = (user: User) => {
|
||||
const { history } = this.props;
|
||||
console.log(user);
|
||||
history.push("/user/" + user.name);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user