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") && +
+ + + +
+ } +

);