From bde13f8be4c312e09bff9c9cd4f230a0612a2bd1 Mon Sep 17 00:00:00 2001 From: Eduard Heimbuch Date: Wed, 28 Aug 2019 12:18:44 +0200 Subject: [PATCH] add ExtensionPoint for actionbar to sourceview-breadcrumbs --- .../packages/ui-components/src/Breadcrumb.js | 36 ++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/scm-ui-components/packages/ui-components/src/Breadcrumb.js b/scm-ui-components/packages/ui-components/src/Breadcrumb.js index d26bb826b4..07283f2c48 100644 --- a/scm-ui-components/packages/ui-components/src/Breadcrumb.js +++ b/scm-ui-components/packages/ui-components/src/Breadcrumb.js @@ -2,6 +2,9 @@ import React from "react"; import { Link } from "react-router-dom"; import injectSheet from "react-jss"; +import { ExtensionPoint, binder } from "@scm-manager/ui-extensions"; +import {ButtonGroup} from "./buttons"; +import classNames from "classnames"; type Props = { revision: string, @@ -13,6 +16,17 @@ type Props = { const styles = { noMargin: { margin: "0" + }, + flexRow: { + display: "flex", + flexDirection: "row" + }, + flexStart: { + flex: "1" + }, + buttonGroup: { + alignSelf: "center", + paddingRight: "1rem" } }; @@ -45,13 +59,27 @@ class Breadcrumb extends React.Component { } render() { - const { classes } = this.props; + const { classes, baseUrl, revision } = this.props; return ( <> - +
+ + { + binder.hasExtension("sourceView.actionbar.right") && +
+ + + +
+ } +

);