mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-27 00:31:42 +00:00
This reverts commit eb26a720838a95ddf7de096486951cf228aa0369.
This commit is contained in:
parent
9c09aeef41
commit
7a55851c56
@ -25,7 +25,6 @@ import { CurrentTourPageType } from '../../../enums/tour.enum';
|
|||||||
import { TableType } from '../../../generated/entity/data/table';
|
import { TableType } from '../../../generated/entity/data/table';
|
||||||
import { TagLabel } from '../../../generated/type/tagLabel';
|
import { TagLabel } from '../../../generated/type/tagLabel';
|
||||||
import { serviceTypeLogo } from '../../../utils/ServiceUtils';
|
import { serviceTypeLogo } from '../../../utils/ServiceUtils';
|
||||||
import { stringToHTML } from '../../../utils/StringsUtils';
|
|
||||||
import { getEntityLink, getUsagePercentile } from '../../../utils/TableUtils';
|
import { getEntityLink, getUsagePercentile } from '../../../utils/TableUtils';
|
||||||
import TableDataCardBody from './TableDataCardBody';
|
import TableDataCardBody from './TableDataCardBody';
|
||||||
|
|
||||||
@ -64,10 +63,6 @@ const TableDataCard: FunctionComponent<Props> = ({
|
|||||||
matches,
|
matches,
|
||||||
tableType,
|
tableType,
|
||||||
deleted = false,
|
deleted = false,
|
||||||
service,
|
|
||||||
database,
|
|
||||||
databaseSchema,
|
|
||||||
name,
|
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
@ -99,28 +94,7 @@ const TableDataCard: FunctionComponent<Props> = ({
|
|||||||
showLabel: true,
|
showLabel: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (service) {
|
|
||||||
OtherDetails.push({
|
|
||||||
key: 'Service',
|
|
||||||
value: service,
|
|
||||||
showLabel: true,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (database) {
|
|
||||||
OtherDetails.push({
|
|
||||||
key: 'Database',
|
|
||||||
value: database,
|
|
||||||
showLabel: true,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (databaseSchema) {
|
|
||||||
OtherDetails.push({
|
|
||||||
key: 'Schema',
|
|
||||||
value: databaseSchema,
|
|
||||||
showLabel: true,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
const getAssetTags = () => {
|
const getAssetTags = () => {
|
||||||
const assetTags = [...(tags as Array<TagLabel>)];
|
const assetTags = [...(tags as Array<TagLabel>)];
|
||||||
if (tier && !isUndefined(tier)) {
|
if (tier && !isUndefined(tier)) {
|
||||||
@ -156,7 +130,7 @@ const TableDataCard: FunctionComponent<Props> = ({
|
|||||||
data-testid="table-link"
|
data-testid="table-link"
|
||||||
id={`${id}Title`}
|
id={`${id}Title`}
|
||||||
onClick={handleLinkClick}>
|
onClick={handleLinkClick}>
|
||||||
{stringToHTML(name)}
|
{fullyQualifiedName}
|
||||||
</button>
|
</button>
|
||||||
</h6>
|
</h6>
|
||||||
{deleted && (
|
{deleted && (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user