From 1898a8ffe5615929cea8154aa7cbc9b2d35c5caf Mon Sep 17 00:00:00 2001 From: Philipp Czora Date: Thu, 27 Dec 2018 13:48:55 +0100 Subject: [PATCH] Added extension point for changeset description --- .../components/changesets/ChangesetDetails.js | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/scm-ui/src/repos/components/changesets/ChangesetDetails.js b/scm-ui/src/repos/components/changesets/ChangesetDetails.js index 483042a779..eb9d0992ee 100644 --- a/scm-ui/src/repos/components/changesets/ChangesetDetails.js +++ b/scm-ui/src/repos/components/changesets/ChangesetDetails.js @@ -12,11 +12,12 @@ import { ChangesetDiff, AvatarWrapper, AvatarImage, - changesets, + changesets } from "@scm-manager/ui-components"; import classNames from "classnames"; import type { Tag } from "@scm-manager/ui-types"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; const styles = { spacing: { @@ -38,9 +39,9 @@ class ChangesetDetails extends React.Component { const description = changesets.parseDescription(changeset.description); const id = ( - + ); - const date = ; + const date = ; return (
@@ -54,7 +55,7 @@ class ChangesetDetails extends React.Component {

- +

{

{this.renderTags()}
-

- {description.message.split("\n").map((item, key) => { - return ( - - {item} -
-
- ); - })} -

+ +

+ {description.message.split("\n").map((item, key) => { + return ( + + {item} +
+
+ ); + })} +

+
@@ -95,7 +102,7 @@ class ChangesetDetails extends React.Component { return (
{tags.map((tag: Tag) => { - return ; + return ; })}
);