mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
Changed handling of changeset description extension point
This commit is contained in:
@@ -12,6 +12,7 @@ import ChangesetTag from "./ChangesetTag";
|
|||||||
|
|
||||||
import { parseDescription } from "./changesets";
|
import { parseDescription } from "./changesets";
|
||||||
import { AvatarWrapper, AvatarImage } from "../../avatar";
|
import { AvatarWrapper, AvatarImage } from "../../avatar";
|
||||||
|
import { ExtensionPoint } from "@scm-manager/ui-extensions";
|
||||||
|
|
||||||
const styles = {
|
const styles = {
|
||||||
pointer: {
|
pointer: {
|
||||||
@@ -64,7 +65,15 @@ class ChangesetRow extends React.Component<Props> {
|
|||||||
<div className={classNames("media-content", classes.withOverflow)}>
|
<div className={classNames("media-content", classes.withOverflow)}>
|
||||||
<div className="content">
|
<div className="content">
|
||||||
<p className="is-ellipsis-overflow">
|
<p className="is-ellipsis-overflow">
|
||||||
<strong>{description.title}</strong>
|
<strong>
|
||||||
|
<ExtensionPoint
|
||||||
|
name="changesets.changeset.description"
|
||||||
|
props={{ changeset, value: description.title }}
|
||||||
|
renderAll={true}
|
||||||
|
>
|
||||||
|
{description.title}
|
||||||
|
</ExtensionPoint>
|
||||||
|
</strong>
|
||||||
<br />
|
<br />
|
||||||
<Interpolate
|
<Interpolate
|
||||||
i18nKey="changesets.changeset.summary"
|
i18nKey="changesets.changeset.summary"
|
||||||
|
|||||||
@@ -46,7 +46,15 @@ class ChangesetDetails extends React.Component<Props> {
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className="content">
|
<div className="content">
|
||||||
<h4>{description.title}</h4>
|
<h4>
|
||||||
|
<ExtensionPoint
|
||||||
|
name="changesets.changeset.description"
|
||||||
|
props={{ changeset, value: description.title }}
|
||||||
|
renderAll={true}
|
||||||
|
>
|
||||||
|
{description.title}
|
||||||
|
</ExtensionPoint>
|
||||||
|
</h4>
|
||||||
<article className="media">
|
<article className="media">
|
||||||
<AvatarWrapper>
|
<AvatarWrapper>
|
||||||
<p className={classNames("image", "is-64x64", classes.spacing)}>
|
<p className={classNames("image", "is-64x64", classes.spacing)}>
|
||||||
@@ -67,22 +75,23 @@ class ChangesetDetails extends React.Component<Props> {
|
|||||||
</div>
|
</div>
|
||||||
<div className="media-right">{this.renderTags()}</div>
|
<div className="media-right">{this.renderTags()}</div>
|
||||||
</article>
|
</article>
|
||||||
<ExtensionPoint
|
|
||||||
name="changesets.changeset.description"
|
|
||||||
props={{ changeset, description }}
|
|
||||||
renderAll={true}
|
|
||||||
>
|
|
||||||
<p>
|
<p>
|
||||||
{description.message.split("\n").map((item, key) => {
|
{description.message.split("\n").map((item, key) => {
|
||||||
return (
|
return (
|
||||||
<span key={key}>
|
<span key={key}>
|
||||||
|
<ExtensionPoint
|
||||||
|
name="changesets.changeset.description"
|
||||||
|
props={{ changeset, value: item }}
|
||||||
|
renderAll={true}
|
||||||
|
>
|
||||||
{item}
|
{item}
|
||||||
|
</ExtensionPoint>
|
||||||
<br />
|
<br />
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</p>
|
</p>
|
||||||
</ExtensionPoint>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<ChangesetDiff changeset={changeset} />
|
<ChangesetDiff changeset={changeset} />
|
||||||
|
|||||||
Reference in New Issue
Block a user