updated profile navigation + some naming changes

This commit is contained in:
Florian Scholdei
2019-01-18 10:25:35 +01:00
parent f96a7b6ca5
commit 03813b40af
6 changed files with 16 additions and 19 deletions

View File

@@ -43,13 +43,12 @@
"previous": "Previous"
},
"profile": {
"navigation-label": "Navigation",
"actions-label": "Actions",
"navigationLabel": "Profile Navigation",
"informationNavLink": "Information",
"changePasswordNavLink": "Change password",
"username": "Username",
"displayName": "Display Name",
"mail": "E-Mail",
"information": "Information",
"change-password": "Change password",
"error-title": "Error",
"error-subtitle": "Cannot display profile",
"error": "Error",

View File

@@ -17,13 +17,13 @@
"create-button": "Create"
},
"repository-root": {
"error-title": "Error",
"error-subtitle": "Unknown repository error",
"navigationLabel": "Repository Navigation",
"historyNavLink": "Commits",
"informationNavLink": "Information",
"permissionsNavLink": "Permissions",
"sourcesNavLink": "Sources"
"sourcesNavLink": "Sources",
"errorTitle": "Error",
"errorSubtitle": "Unknown repository error"
},
"create": {
"title": "Create Repository",

View File

@@ -34,12 +34,12 @@
"subtitle": "Create a new user"
},
"single-user": {
"error-title": "Error",
"error-subtitle": "Unknown user error",
"navigationLabel": "User Navigation",
"informationNavLink": "Information",
"editNavLink": "Edit",
"setPasswordNavLink": "Set password"
"setPasswordNavLink": "Set password",
"errorTitle": "Error",
"errorSubtitle": "Unknown user error"
},
"validation": {
"mail-invalid": "This email is invalid",

View File

@@ -69,13 +69,11 @@ class Profile extends React.Component<Props, State> {
</div>
<div className="column">
<Navigation>
<Section label={t("profile.navigation-label")}>
<NavLink to={`${url}`} label={t("profile.information")} />
</Section>
<Section label={t("profile.actions-label")}>
<Section label={t("profile.navigationLabel")}>
<NavLink to={`${url}`} label={t("profile.informationNavLink")} />
<NavLink
to={`${url}/password`}
label={t("profile.change-password")}
label={t("profile.changePasswordNavLink")}
/>
</Section>
</Navigation>

View File

@@ -80,8 +80,8 @@ class RepositoryRoot extends React.Component<Props> {
if (error) {
return (
<ErrorPage
title={t("repository-root.error-title")}
subtitle={t("repository-root.error-subtitle")}
title={t("repository-root.errorTitle")}
subtitle={t("repository-root.errorSubtitle")}
error={error}
/>
);

View File

@@ -80,8 +80,8 @@ class SingleUser extends React.Component<Props> {
if (error) {
return (
<ErrorPage
title={t("single-user.error-title")}
subtitle={t("single-user.error-subtitle")}
title={t("single-user.errorTitle")}
subtitle={t("single-user.errorSubtitle")}
error={error}
/>
);