From 4d2648c6e9efe1d2ae73f7afc6daaa934caa6b3e Mon Sep 17 00:00:00 2001 From: Oliver Sand Date: Mon, 8 Mar 2021 12:02:29 +0100 Subject: [PATCH] Adjust naming Signed-off-by: Oliver Sand --- plugins/catalog/src/components/AboutCard/AboutCard.tsx | 4 ++-- plugins/catalog/src/utils/getEntitySourceLocation.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/catalog/src/components/AboutCard/AboutCard.tsx b/plugins/catalog/src/components/AboutCard/AboutCard.tsx index b817eae16f..c8bac651ce 100644 --- a/plugins/catalog/src/components/AboutCard/AboutCard.tsx +++ b/plugins/catalog/src/components/AboutCard/AboutCard.tsx @@ -81,8 +81,8 @@ export function AboutCard({ variant }: AboutCardProps) { const viewInSource: IconLinkVerticalProps = { label: 'View Source', disabled: !entitySourceLocation, - icon: , - href: entitySourceLocation?.url, + icon: , + href: entitySourceLocation?.locationTargetUrl, }; const viewInTechDocs: IconLinkVerticalProps = { label: 'View TechDocs', diff --git a/plugins/catalog/src/utils/getEntitySourceLocation.ts b/plugins/catalog/src/utils/getEntitySourceLocation.ts index 51d63baf2f..5b957a850a 100644 --- a/plugins/catalog/src/utils/getEntitySourceLocation.ts +++ b/plugins/catalog/src/utils/getEntitySourceLocation.ts @@ -23,8 +23,8 @@ import { ConfigApi } from '@backstage/core'; import { ScmIntegrations } from '@backstage/integration'; export type EntitySourceLocation = { - url: string; - type?: string; + locationTargetUrl: string; + integrationType?: string; }; export function getEntitySourceLocation( @@ -44,8 +44,8 @@ export function getEntitySourceLocation( const integration = scmIntegrations.byUrl(sourceLocationRef.target); return { - url: sourceLocationRef.target, - type: integration?.type, + locationTargetUrl: sourceLocationRef.target, + integrationType: integration?.type, }; } catch { return undefined;