X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/62c2d66cbae1c97df44e9fc1c57f8bb306c38167..be5e418e1bb0ff54401b71c2cf6865222d182c18:/src/views-components/advanced-tab-dialog/metadataTab.tsx diff --git a/src/views-components/advanced-tab-dialog/metadataTab.tsx b/src/views-components/advanced-tab-dialog/metadataTab.tsx index eea438d7e8..1b950d242f 100644 --- a/src/views-components/advanced-tab-dialog/metadataTab.tsx +++ b/src/views-components/advanced-tab-dialog/metadataTab.tsx @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from "react"; +import React from "react"; import { Table, TableHead, TableCell, TableRow, TableBody, StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core'; type CssRules = 'cell'; @@ -17,16 +17,16 @@ interface MetadataTable { uuid: string; linkClass: string; name: string; - tail: string; - head: string; + tailUuid: string; + headUuid: string; properties: any; } interface MetadataProps { items: MetadataTable[]; + uuid: string; } - export const MetadataTab = withStyles(styles)((props: MetadataProps & WithStyles) => @@ -40,21 +40,16 @@ export const MetadataTab = withStyles(styles)((props: MetadataProps & WithStyles - {props.items.map((it: any, index: number) => { - return ( - - {tableCell(it.uuid, props.classes)} - {tableCell(it.linkClass, props.classes)} - {tableCell(it.name, props.classes)} - {tableCell(it.tailUuid, props.classes)} - {tableCell(it.headUuid, props.classes)} - {tableCell(JSON.stringify(it.properties, null, 2), props.classes)} - - ); - })} + {props.items.map((it, index) => + + {it.uuid} + {it.linkClass} + {it.name} + {it.tailUuid} + {it.headUuid === props.uuid ? 'this' : it.headUuid} + {JSON.stringify(it.properties)} + + )}
-); - -const tableCell = (value: string, classes: any) => - {value}; \ No newline at end of file +); \ No newline at end of file