Skip to content

Commit

Permalink
show topic title as request subject
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducica committed Dec 2, 2024
1 parent afc4f8b commit 5481969
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
import { i18next } from "@translations/oarepo_requests_ui/i18next";
import { Icon, List } from "semantic-ui-react";
import _has from "lodash/has";
import _truncate from "lodash/truncate";
import { getRequestStatusIcon } from "@js/oarepo_requests_common";
import PropTypes from "prop-types";

Expand Down Expand Up @@ -64,12 +65,12 @@ export const SideRequestInfo = ({ request }) => {
<List.Item>
<List.Header as="h3">{i18next.t("Topic")}</List.Header>
<List.Content>
<a
href={request?.links?.topic_html}
target="_blank"
rel="noreferrer"
>
{i18next.t("Request topic")}
<a href={request.links.topic_html} target="_blank" rel="noreferrer">
{request?.topic?.label
? _truncate(request?.topic?.label, {
length: 350,
})
: i18next.t("Request topic")}
</a>
</List.Content>
</List.Item>
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = oarepo-requests
version = 2.3.7
version = 2.3.8
description =
authors = Ronald Krist <[email protected]>
readme = README.md
Expand Down

0 comments on commit 5481969

Please sign in to comment.