added extensionpoints + rehang gitplugin config

This commit is contained in:
Florian Scholdei
2019-01-23 15:42:15 +01:00
parent 2e3fcbd860
commit 7d0570e7ee
7 changed files with 92 additions and 35 deletions

View File

@@ -18,6 +18,7 @@ import {
} from "@scm-manager/ui-components";
import ChangeUserPassword from "./ChangeUserPassword";
import ProfileInfo from "./ProfileInfo";
import {ExtensionPoint} from "@scm-manager/ui-extensions";
type Props = {
me: Me,
@@ -58,6 +59,11 @@ class Profile extends React.Component<Props, State> {
);
}
const extensionProps = {
me,
url
};
return (
<Page title={me.displayName}>
<div className="columns">
@@ -83,6 +89,11 @@ class Profile extends React.Component<Props, State> {
to={`${url}/settings/password`}
label={t("profile.changePasswordNavLink")}
/>
<ExtensionPoint
name="profile.subnavigation"
props={extensionProps}
renderAll={true}
/>
</SubNavigation>
</Section>
</Navigation>