mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 09:25:43 +01:00
added settings for user
This commit is contained in:
@@ -36,6 +36,7 @@
|
|||||||
"single-user": {
|
"single-user": {
|
||||||
"navigationLabel": "User Navigation",
|
"navigationLabel": "User Navigation",
|
||||||
"informationNavLink": "Information",
|
"informationNavLink": "Information",
|
||||||
|
"settingsNavLink": "Settings",
|
||||||
"editNavLink": "Edit",
|
"editNavLink": "Edit",
|
||||||
"setPasswordNavLink": "Set password",
|
"setPasswordNavLink": "Set password",
|
||||||
"errorTitle": "Error",
|
"errorTitle": "Error",
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ class Profile extends React.Component<Props, State> {
|
|||||||
label={t("profile.informationNavLink")}
|
label={t("profile.informationNavLink")}
|
||||||
/>
|
/>
|
||||||
<SubNavigation
|
<SubNavigation
|
||||||
to={`${url}/settings/password`}
|
to={`${url}/settings`}
|
||||||
label={t("profile.settingsNavLink")}
|
label={t("profile.settingsNavLink")}
|
||||||
>
|
>
|
||||||
<NavLink
|
<NavLink
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import {
|
|||||||
Page,
|
Page,
|
||||||
Loading,
|
Loading,
|
||||||
Navigation,
|
Navigation,
|
||||||
|
SubNavigation,
|
||||||
Section,
|
Section,
|
||||||
NavLink,
|
NavLink,
|
||||||
ErrorPage
|
ErrorPage
|
||||||
@@ -99,11 +100,11 @@ class SingleUser extends React.Component<Props> {
|
|||||||
<div className="column is-three-quarters">
|
<div className="column is-three-quarters">
|
||||||
<Route path={url} exact component={() => <Details user={user} />} />
|
<Route path={url} exact component={() => <Details user={user} />} />
|
||||||
<Route
|
<Route
|
||||||
path={`${url}/edit`}
|
path={`${url}/settings/edit`}
|
||||||
component={() => <EditUser user={user} />}
|
component={() => <EditUser user={user} />}
|
||||||
/>
|
/>
|
||||||
<Route
|
<Route
|
||||||
path={`${url}/password`}
|
path={`${url}/settings/password`}
|
||||||
component={() => <SetUserPassword user={user} />}
|
component={() => <SetUserPassword user={user} />}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -114,11 +115,16 @@ class SingleUser extends React.Component<Props> {
|
|||||||
to={`${url}`}
|
to={`${url}`}
|
||||||
label={t("single-user.informationNavLink")}
|
label={t("single-user.informationNavLink")}
|
||||||
/>
|
/>
|
||||||
<EditUserNavLink user={user} editUrl={`${url}/edit`} />
|
<SubNavigation
|
||||||
|
to={`${url}/settings`}
|
||||||
|
label={t("single-user.settingsNavLink")}
|
||||||
|
>
|
||||||
|
<EditUserNavLink user={user} editUrl={`${url}/settings/edit`} />
|
||||||
<SetPasswordNavLink
|
<SetPasswordNavLink
|
||||||
user={user}
|
user={user}
|
||||||
passwordUrl={`${url}/password`}
|
passwordUrl={`${url}/settings/password`}
|
||||||
/>
|
/>
|
||||||
|
</SubNavigation>
|
||||||
</Section>
|
</Section>
|
||||||
</Navigation>
|
</Navigation>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user