[ARVADOS-WORKBENCH2] updated: 1.2.0-747-g67480b3
Git user
git at public.curoverse.com
Tue Oct 30 05:04:35 EDT 2018
Summary of changes:
.../advanced-tab-dialog/metadataTab.tsx | 25 ++++++++++------------
1 file changed, 11 insertions(+), 14 deletions(-)
via 67480b3273af1a2a56bee003c0fc95752a38c697 (commit)
from 62c2d66cbae1c97df44e9fc1c57f8bb306c38167 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 67480b3273af1a2a56bee003c0fc95752a38c697
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date: Tue Oct 30 10:04:25 2018 +0100
init metadata
Feature #13969
Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
diff --git a/src/views-components/advanced-tab-dialog/metadataTab.tsx b/src/views-components/advanced-tab-dialog/metadataTab.tsx
index eea438d..f8386fd 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<CssRules>) =>
<Table>
<TableHead>
@@ -40,21 +40,18 @@ export const MetadataTab = withStyles(styles)((props: MetadataProps & WithStyles
</TableRow>
</TableHead>
<TableBody>
- {props.items.map((it: any, index: number) => {
+ {props.items.map((it: MetadataTable, index: number) => {
return (
<TableRow key={index}>
- {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)}
+ <TableCell className={props.classes.cell}>{it.uuid}</TableCell>
+ <TableCell className={props.classes.cell}>{it.linkClass}</TableCell>
+ <TableCell className={props.classes.cell}>{it.name}</TableCell>
+ <TableCell className={props.classes.cell}>{it.tailUuid}</TableCell>
+ <TableCell className={props.classes.cell}>{it.headUuid}</TableCell>
+ <TableCell className={props.classes.cell}>{JSON.stringify(it.properties, null, 2)}</TableCell>
</TableRow>
);
})}
</TableBody>
</Table>
-);
-
-const tableCell = (value: string, classes: any) =>
- <TableCell className={classes.cell}>{value}</TableCell>;
\ No newline at end of file
+);
\ No newline at end of file
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list