From 5a80de8ff602b185575bdcbcb9daa891aaeb659d Mon Sep 17 00:00:00 2001 From: "roylisto.pradana" Date: Wed, 30 Jun 2021 14:14:48 +0700 Subject: [PATCH] get metadata edit url Signed-off-by: roylisto.pradana --- .../Cards/Group/GroupProfile/GroupProfileCard.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx b/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx index a96c53da6e..8d44e9157a 100644 --- a/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx +++ b/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx @@ -23,6 +23,7 @@ import { EntityRefLinks, getEntityRelations, useEntity, + getEntityMetadataEditUrl, } from '@backstage/plugin-catalog-react'; import { Box, @@ -74,6 +75,8 @@ export const GroupProfileCard = ({ kind: 'group', }); + const entityMetadataEditUrl = getEntityMetadataEditUrl(group); + const displayName = profile?.displayName ?? name; const emailHref = profile?.email ? `mailto:${profile.email}` : undefined; @@ -85,10 +88,10 @@ export const GroupProfileCard = ({ action={ { - // window.open(entityMetadataEditUrl ?? '#', '_blank'); + window.open(entityMetadataEditUrl ?? '#', '_blank'); }} >