From 466c7903f49908299f03725d60ff15a3eceef691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Grom?= Date: Mon, 30 Sep 2024 12:46:52 +0200 Subject: [PATCH] Fix list maintainers data display --- ...contributor-details-projects-maintainer-item.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/frontend/src/modules/contributor/components/details/overview/project/contributor-details-projects-maintainer-item.vue b/frontend/src/modules/contributor/components/details/overview/project/contributor-details-projects-maintainer-item.vue index 12eb46e1d..6feb93853 100644 --- a/frontend/src/modules/contributor/components/details/overview/project/contributor-details-projects-maintainer-item.vue +++ b/frontend/src/modules/contributor/components/details/overview/project/contributor-details-projects-maintainer-item.vue @@ -10,7 +10,7 @@
-

+

Repositories

@@ -43,7 +43,7 @@
-
+

Previously

@@ -95,10 +95,15 @@ const props = defineProps<{ const getPlatform = (platform: string) => CrowdIntegrations.getConfig(platform); -const currentRepos = computed(() => props.maintainerRoles.filter((role) => !role.dateEnd)); +const currentRepos = computed(() => { + if (props.showProjects) { + return props.maintainerRoles; + } + return props.maintainerRoles.filter((role) => !role.dateEnd); +}); const previousRepos = computed(() => props.maintainerRoles.filter((role) => !!role.dateEnd)); -const segmentIds = computed(() => props.maintainerRoles.map((role) => role.segmentId)); +const segmentIds = computed(() => [...new Set(props.maintainerRoles.map((role) => role.segmentId))]); const getRepoName = (url: string) => url.split('/').pop(); const getSegmentName = (segmentId) => {