mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
updated user navigation
This commit is contained in:
@@ -26,12 +26,6 @@
|
||||
"cancel": "No"
|
||||
}
|
||||
},
|
||||
"edit-user-button": {
|
||||
"label": "Edit"
|
||||
},
|
||||
"set-password-button": {
|
||||
"label": "Set password"
|
||||
},
|
||||
"user-form": {
|
||||
"submit": "Submit"
|
||||
},
|
||||
@@ -42,10 +36,10 @@
|
||||
"single-user": {
|
||||
"error-title": "Error",
|
||||
"error-subtitle": "Unknown user error",
|
||||
"navigation-label": "Navigation",
|
||||
"actions-label": "Actions",
|
||||
"information-label": "Information",
|
||||
"back-label": "Back"
|
||||
"navigationLabel": "User Navigation",
|
||||
"informationNavLink": "Information",
|
||||
"editNavLink": "Edit",
|
||||
"setPasswordNavLink": "Set password"
|
||||
},
|
||||
"validation": {
|
||||
"mail-invalid": "This email is invalid",
|
||||
|
||||
@@ -17,7 +17,7 @@ class EditUserNavLink extends React.Component<Props> {
|
||||
if (!this.isEditable()) {
|
||||
return null;
|
||||
}
|
||||
return <NavLink label={t("edit-user-button.label")} to={editUrl} />;
|
||||
return <NavLink label={t("single-user.editNavLink")} to={editUrl} />;
|
||||
}
|
||||
|
||||
isEditable = () => {
|
||||
|
||||
@@ -17,7 +17,7 @@ class ChangePasswordNavLink extends React.Component<Props> {
|
||||
if (!this.hasPermissionToSetPassword()) {
|
||||
return null;
|
||||
}
|
||||
return <NavLink label={t("set-password-button.label")} to={passwordUrl} />;
|
||||
return <NavLink label={t("single-user.setPasswordNavLink")} to={passwordUrl} />;
|
||||
}
|
||||
|
||||
hasPermissionToSetPassword = () => {
|
||||
|
||||
@@ -109,10 +109,10 @@ class SingleUser extends React.Component<Props> {
|
||||
</div>
|
||||
<div className="column">
|
||||
<Navigation>
|
||||
<Section label={t("single-user.navigation-label")}>
|
||||
<Section label={t("single-user.navigationLabel")}>
|
||||
<NavLink
|
||||
to={`${url}`}
|
||||
label={t("single-user.information-label")}
|
||||
label={t("single-user.informationNavLink")}
|
||||
/>
|
||||
<EditUserNavLink user={user} editUrl={`${url}/edit`} />
|
||||
<SetPasswordNavLink
|
||||
@@ -120,10 +120,6 @@ class SingleUser extends React.Component<Props> {
|
||||
passwordUrl={`${url}/password`}
|
||||
/>
|
||||
</Section>
|
||||
<Section label={t("single-user.actions-label")}>
|
||||
<DeleteUserNavLink user={user} deleteUser={this.deleteUser} />
|
||||
<NavLink to="/users" label={t("single-user.back-label")} />
|
||||
</Section>
|
||||
</Navigation>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user