mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +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 = () => {
|
groupCreated = (group: Group) => {
|
||||||
this.props.history.push("/groups");
|
this.props.history.push("/group/" + group.name);
|
||||||
};
|
};
|
||||||
createGroup = (group: Group) => {
|
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) => {
|
userCreated = (user: User) => {
|
||||||
const { history } = this.props;
|
const { history } = this.props;
|
||||||
console.log(user);
|
|
||||||
history.push("/user/" + user.name);
|
history.push("/user/" + user.name);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user