From d4380053d3351990ac40d1eb93e0278e5cf92de2 Mon Sep 17 00:00:00 2001 From: Alex Ioannidis Date: Fri, 18 Oct 2024 10:43:40 +0200 Subject: [PATCH] communities-ui: make verified icon display depend on parent community --- .../communitiesItems/CommunityCompactItemComputer.js | 2 +- .../communitiesItems/CommunityCompactItemMobile.js | 2 +- .../community/communitiesItems/CommunityItemComputer.js | 2 +- .../community/communitiesItems/CommunityItemMobile.js | 2 +- .../semantic-ui/invenio_communities/details/header.html | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/invenio_communities/assets/semantic-ui/js/invenio_communities/community/communitiesItems/CommunityCompactItemComputer.js b/invenio_communities/assets/semantic-ui/js/invenio_communities/community/communitiesItems/CommunityCompactItemComputer.js index 8ee7c3cad..54b8ad31f 100644 --- a/invenio_communities/assets/semantic-ui/js/invenio_communities/community/communitiesItems/CommunityCompactItemComputer.js +++ b/invenio_communities/assets/semantic-ui/js/invenio_communities/community/communitiesItems/CommunityCompactItemComputer.js @@ -47,7 +47,7 @@ export const CommunityCompactItemComputer = ({ aria-label={`${metadata.title} (${i18next.t("opens in new tab")})`} > {metadata.title}{" "} - {result.is_verified && ( + {result.parent?.is_verified && (

{metadata.title}{" "} - {result.is_verified && ( + {result.parent?.is_verified && (

{ )}

{result.metadata.title} - {result.is_verified && ( + {result.parent?.is_verified && (

{

{result.metadata.title} - {result.is_verified && ( + {result.parent?.is_verified && (

{{ community.metadata.title }} - {% if community.is_verified %} + {% if community.parent and community.parent.is_verified %}

@@ -53,7 +53,7 @@ />
-
+
{{community_title(community)}}
@@ -73,9 +73,9 @@
{{ access_status_label() }}
- {% endif %} + {% endif %} {% if community.parent %} -
+
Part of