updated group navigation

This commit is contained in:
Florian Scholdei
2019-01-18 10:16:45 +01:00
parent 3318e5291e
commit f96a7b6ca5
2 changed files with 8 additions and 18 deletions

View File

@@ -12,12 +12,10 @@
"subtitle": "Create, read, update and delete groups" "subtitle": "Create, read, update and delete groups"
}, },
"single-group": { "single-group": {
"error-title": "Error", "navigationLabel": "Group Navigation",
"error-subtitle": "Unknown group error", "informationNavLink": "Information",
"navigation-label": "Navigation", "errorTitle": "Error",
"actions-label": "Actions", "errorSubtitle": "Unknown group error"
"information-label": "Information",
"back-label": "Back"
}, },
"add-group": { "add-group": {
"title": "Create Group", "title": "Create Group",

View File

@@ -75,8 +75,8 @@ class SingleGroup extends React.Component<Props> {
if (error) { if (error) {
return ( return (
<ErrorPage <ErrorPage
title={t("single-group.error-title")} title={t("single-group.errorTitle")}
subtitle={t("single-group.error-subtitle")} subtitle={t("single-group.errorSubtitle")}
error={error} error={error}
/> />
); );
@@ -105,20 +105,12 @@ class SingleGroup extends React.Component<Props> {
</div> </div>
<div className="column"> <div className="column">
<Navigation> <Navigation>
<Section label={t("single-group.navigation-label")}> <Section label={t("single-group.navigationLabel")}>
<NavLink <NavLink
to={`${url}`} to={`${url}`}
label={t("single-group.information-label")} label={t("single-group.informationNavLink")}
/> />
</Section> </Section>
<Section label={t("single-group.actions-label")}>
<DeleteGroupNavLink
group={group}
deleteGroup={this.deleteGroup}
/>
<EditGroupNavLink group={group} editUrl={`${url}/edit`} />
<NavLink to="/groups" label={t("single-group.back-label")} />
</Section>
</Navigation> </Navigation>
</div> </div>
</div> </div>