Don't open a new tab when clicking on the ownership card

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
Oliver Sand
2021-08-26 16:02:47 +02:00
parent e92964cce7
commit c9927b1c74
2 changed files with 26 additions and 21 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-org': patch
---
Don't open a new tab when clicking on the ownership card.
@@ -15,26 +15,6 @@
*/
import { Entity } from '@backstage/catalog-model';
import {
catalogApiRef,
isOwnerOf,
useEntity,
catalogRouteRef,
formatEntityRefTitle,
} from '@backstage/plugin-catalog-react';
import { BackstageTheme, genPageTheme } from '@backstage/theme';
import {
Box,
createStyles,
Grid,
makeStyles,
Typography,
Link,
} from '@material-ui/core';
import React from 'react';
import { useAsync } from 'react-use';
import { generatePath } from 'react-router';
import qs from 'qs';
import {
InfoCard,
InfoCardVariants,
@@ -42,6 +22,26 @@ import {
ResponseErrorPanel,
} from '@backstage/core-components';
import { useApi, useRouteRef } from '@backstage/core-plugin-api';
import {
catalogApiRef,
catalogRouteRef,
formatEntityRefTitle,
isOwnerOf,
useEntity,
} from '@backstage/plugin-catalog-react';
import { BackstageTheme, genPageTheme } from '@backstage/theme';
import {
Box,
createStyles,
Grid,
Link,
makeStyles,
Typography,
} from '@material-ui/core';
import qs from 'qs';
import React from 'react';
import { generatePath } from 'react-router';
import { useAsync } from 'react-use';
type EntityTypeProps = {
kind: string;
@@ -96,7 +96,7 @@ const EntityCountTile = ({
const classes = useStyles({ type });
return (
<Link href={url} target="_blank" rel="noreferrer noopenner" variant="body2">
<Link href={url} variant="body2">
<Box
className={`${classes.card} ${classes.entityTypeBox}`}
display="flex"