mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
refactor backend for modifyCommand / add sourceExtension for plugins
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user