mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 21:45:43 +01:00
21 lines
691 B
JavaScript
21 lines
691 B
JavaScript
//@flow
|
|
import { binder } from "@scm-manager/ui-extensions";
|
|
import ProtocolInformation from "./ProtocolInformation";
|
|
import GitAvatar from "./GitAvatar";
|
|
|
|
import { ConfigurationBinder as cfgBinder } from "@scm-manager/ui-components";
|
|
import GitGlobalConfiguration from "./GitGlobalConfiguration";
|
|
|
|
// repository
|
|
|
|
const gitPredicate = (props: Object) => {
|
|
return props.repository && props.repository.type === "git";
|
|
};
|
|
|
|
binder.bind("repos.repository-details.information", ProtocolInformation, gitPredicate);
|
|
binder.bind("repos.repository-avatar", GitAvatar, gitPredicate);
|
|
|
|
// global config
|
|
|
|
cfgBinder.bindGlobal("/git", "scm-git-plugin.config.link", "gitConfig", GitGlobalConfiguration);
|