mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
Added co-author to changeset
This commit is contained in:
committed by
René Pfeuffer
parent
e451bb618e
commit
a712c89f6a
@@ -53,11 +53,23 @@ class ChangesetAuthor extends React.Component<Props> {
|
||||
);
|
||||
}
|
||||
|
||||
checkIfCoAuthorsExists() {
|
||||
console.log(this.props.changeset.trailerPersons.filter(p => p.trailerType === "Co-authored-by").length > 0);
|
||||
return this.props.changeset.trailerPersons.filter(p => p.trailerType === "Co-authored-by").length > 0;
|
||||
}
|
||||
|
||||
renderCoAuthors() {
|
||||
const { t } = this.props;
|
||||
|
||||
return <>{t("changeset.author.prefix")}</>;
|
||||
}
|
||||
|
||||
withExtensionPoint(child: any) {
|
||||
const { t } = this.props;
|
||||
return (
|
||||
<>
|
||||
{t("changeset.author.prefix")} {child}
|
||||
{this.checkIfCoAuthorsExists() ? this.renderCoAuthors() : null}
|
||||
<ExtensionPoint
|
||||
name="changesets.author.suffix"
|
||||
props={{
|
||||
|
||||
Reference in New Issue
Block a user