mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 05:55:44 +01:00
implemented avatar and information extension point for svn, hg and git
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
import { binder } from "@scm-manager/ui-extensions";
|
||||
import CloneInformation from './CloneInformation';
|
||||
import ProtocolInformation from './ProtocolInformation';
|
||||
import GitAvatar from './GitAvatar';
|
||||
|
||||
binder.bind("repos.repository-details.informations", CloneInformation);
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user