mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
add navigation for config
This commit is contained in:
@@ -32,7 +32,8 @@
|
||||
"repositories": "Repositories",
|
||||
"users": "Users",
|
||||
"logout": "Logout",
|
||||
"groups": "Groups"
|
||||
"groups": "Groups",
|
||||
"config": "Configuration"
|
||||
},
|
||||
"paginator": {
|
||||
"next": "Next",
|
||||
|
||||
@@ -28,6 +28,10 @@ class PrimaryNavigation extends React.Component<Props> {
|
||||
match="/(group|groups)"
|
||||
label={t("primary-navigation.groups")}
|
||||
/>
|
||||
<PrimaryNavigationLink
|
||||
to="/config"
|
||||
label={t("primary-navigation.config")}
|
||||
/>
|
||||
<PrimaryNavigationLink
|
||||
to="/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 AddGroup from "../groups/containers/AddGroup";
|
||||
|
||||
import Config from "../config/containers/Config";
|
||||
|
||||
type Props = {
|
||||
authenticated?: boolean
|
||||
};
|
||||
@@ -99,6 +101,12 @@ class Main extends React.Component<Props> {
|
||||
component={Groups}
|
||||
authenticated={authenticated}
|
||||
/>
|
||||
<ProtectedRoute
|
||||
exact
|
||||
path="/config"
|
||||
component={Config}
|
||||
authenticated={authenticated}
|
||||
/>
|
||||
</Switch>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user