diff --git a/oarepo_requests/ui/theme/assets/semantic-ui/js/oarepo_requests_ui/common/components/SideRequestInfo.jsx b/oarepo_requests/ui/theme/assets/semantic-ui/js/oarepo_requests_ui/common/components/SideRequestInfo.jsx index 717af3e..2b3350c 100644 --- a/oarepo_requests/ui/theme/assets/semantic-ui/js/oarepo_requests_ui/common/components/SideRequestInfo.jsx +++ b/oarepo_requests/ui/theme/assets/semantic-ui/js/oarepo_requests_ui/common/components/SideRequestInfo.jsx @@ -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"; @@ -64,12 +65,12 @@ export const SideRequestInfo = ({ request }) => { {i18next.t("Topic")} - - {i18next.t("Request topic")} + + {request?.topic?.label + ? _truncate(request?.topic?.label, { + length: 350, + }) + : i18next.t("Request topic")} diff --git a/setup.cfg b/setup.cfg index b5b49b6..cb047f8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = oarepo-requests -version = 2.3.7 +version = 2.3.8 description = authors = Ronald Krist readme = README.md