refactor backend for modifyCommand / add sourceExtension for plugins

This commit is contained in:
Eduard Heimbuch
2019-10-30 12:59:54 +01:00
parent 48154cce0f
commit 4f17bc6b1c
7 changed files with 121 additions and 10 deletions

View File

@@ -8,6 +8,7 @@ import { Branch, Repository } from "@scm-manager/ui-types";
import Icon from "./Icon";
type Props = WithTranslation & {
repository: Repository;
branch: Branch;
defaultBranch: Branch;
revision: string;
@@ -58,7 +59,7 @@ class Breadcrumb extends React.Component<Props> {
}
render() {
const { baseUrl, branch, defaultBranch, sources, revision, path, t } = this.props;
const { repository, baseUrl, branch, defaultBranch, sources, revision, path, t } = this.props;
let homeUrl = baseUrl + "/";
if (revision) {
@@ -80,14 +81,15 @@ class Breadcrumb extends React.Component<Props> {
</FlexStartNav>
{binder.hasExtension("repos.sources.actionbar") && (
<ActionWrapper>
{console.log(sources)}
<ExtensionPoint
name="repos.sources.actionbar"
props={{
baseUrl,
revision,
branch: branch ? branch : defaultBranch,
path,
sources
sources,
repository
}}
renderAll={true}
/>