Merged in feature/changeset_desc_ext_point (pull request #144)

Added extension point for changeset description
This commit is contained in:
Sebastian Sdorra
2019-01-04 07:37:55 +00:00

View File

@@ -17,6 +17,7 @@ import {
import classNames from "classnames";
import type { Tag } from "@scm-manager/ui-types";
import { ExtensionPoint } from "@scm-manager/ui-extensions";
const styles = {
spacing: {
@@ -66,16 +67,22 @@ class ChangesetDetails extends React.Component<Props> {
</div>
<div className="media-right">{this.renderTags()}</div>
</article>
<p>
{description.message.split("\n").map((item, key) => {
return (
<span key={key}>
{item}
<br />
</span>
);
})}
</p>
<ExtensionPoint
name="changesets.changeset.description"
props={{ changeset, description }}
renderAll={true}
>
<p>
{description.message.split("\n").map((item, key) => {
return (
<span key={key}>
{item}
<br />
</span>
);
})}
</p>
</ExtensionPoint>
</div>
<div>
<ChangesetDiff changeset={changeset} />