diff --git a/scm-ui/ui-components/src/repos/changesets/ChangesetAuthor.tsx b/scm-ui/ui-components/src/repos/changesets/ChangesetAuthor.tsx index c70ce4ca56..418bbd6bdf 100644 --- a/scm-ui/ui-components/src/repos/changesets/ChangesetAuthor.tsx +++ b/scm-ui/ui-components/src/repos/changesets/ChangesetAuthor.tsx @@ -53,11 +53,23 @@ class ChangesetAuthor extends React.Component { ); } + 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}