From 67480b3273af1a2a56bee003c0fc95752a38c697 Mon Sep 17 00:00:00 2001 From: Pawel Kowalczyk Date: Tue, 30 Oct 2018 10:04:25 +0100 Subject: [PATCH] init metadata Feature #13969 Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk --- .../advanced-tab-dialog/metadataTab.tsx | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/src/views-components/advanced-tab-dialog/metadataTab.tsx b/src/views-components/advanced-tab-dialog/metadataTab.tsx index eea438d7..f8386fd2 100644 --- a/src/views-components/advanced-tab-dialog/metadataTab.tsx +++ b/src/views-components/advanced-tab-dialog/metadataTab.tsx @@ -4,6 +4,7 @@ import * as React from "react"; import { Table, TableHead, TableCell, TableRow, TableBody, StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core'; +import { navigateTo } from "~/store/navigation/navigation-action"; type CssRules = 'cell'; @@ -17,8 +18,8 @@ interface MetadataTable { uuid: string; linkClass: string; name: string; - tail: string; - head: string; + tailUuid: string; + headUuid: string; properties: any; } @@ -26,7 +27,6 @@ interface MetadataProps { items: MetadataTable[]; } - export const MetadataTab = withStyles(styles)((props: MetadataProps & WithStyles) => @@ -40,21 +40,18 @@ export const MetadataTab = withStyles(styles)((props: MetadataProps & WithStyles - {props.items.map((it: any, index: number) => { + {props.items.map((it: MetadataTable, 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)} + {it.uuid} + {it.linkClass} + {it.name} + {it.tailUuid} + {it.headUuid} + {JSON.stringify(it.properties, null, 2)} ); })}
-); - -const tableCell = (value: string, classes: any) => - {value}; \ No newline at end of file +); \ No newline at end of file -- 2.30.2