mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
add navigation for config
This commit is contained in:
@@ -32,7 +32,8 @@
|
|||||||
"repositories": "Repositories",
|
"repositories": "Repositories",
|
||||||
"users": "Users",
|
"users": "Users",
|
||||||
"logout": "Logout",
|
"logout": "Logout",
|
||||||
"groups": "Groups"
|
"groups": "Groups",
|
||||||
|
"config": "Configuration"
|
||||||
},
|
},
|
||||||
"paginator": {
|
"paginator": {
|
||||||
"next": "Next",
|
"next": "Next",
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ class PrimaryNavigation extends React.Component<Props> {
|
|||||||
match="/(group|groups)"
|
match="/(group|groups)"
|
||||||
label={t("primary-navigation.groups")}
|
label={t("primary-navigation.groups")}
|
||||||
/>
|
/>
|
||||||
|
<PrimaryNavigationLink
|
||||||
|
to="/config"
|
||||||
|
label={t("primary-navigation.config")}
|
||||||
|
/>
|
||||||
<PrimaryNavigationLink
|
<PrimaryNavigationLink
|
||||||
to="/logout"
|
to="/logout"
|
||||||
label={t("primary-navigation.logout")}
|
label={t("primary-navigation.logout")}
|
||||||
|
|||||||
9
scm-ui/src/config/containers/Config.js
Normal file
9
scm-ui/src/config/containers/Config.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import React, { Component } from "react";
|
||||||
|
|
||||||
|
class Config extends Component {
|
||||||
|
render() {
|
||||||
|
return <div>Here, Config will be shown</div>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Config;
|
||||||
@@ -19,6 +19,8 @@ import Groups from "../groups/containers/Groups";
|
|||||||
import SingleGroup from "../groups/containers/SingleGroup";
|
import SingleGroup from "../groups/containers/SingleGroup";
|
||||||
import AddGroup from "../groups/containers/AddGroup";
|
import AddGroup from "../groups/containers/AddGroup";
|
||||||
|
|
||||||
|
import Config from "../config/containers/Config";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
authenticated?: boolean
|
authenticated?: boolean
|
||||||
};
|
};
|
||||||
@@ -99,6 +101,12 @@ class Main extends React.Component<Props> {
|
|||||||
component={Groups}
|
component={Groups}
|
||||||
authenticated={authenticated}
|
authenticated={authenticated}
|
||||||
/>
|
/>
|
||||||
|
<ProtectedRoute
|
||||||
|
exact
|
||||||
|
path="/config"
|
||||||
|
component={Config}
|
||||||
|
authenticated={authenticated}
|
||||||
|
/>
|
||||||
</Switch>
|
</Switch>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user