X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/6fdd4a4d609cf8fa459786f42eb337f8da6a5afa..c6ccae902b16d7ff421e87f1b9c3578ef8a4334e:/src/views-components/details-panel/project-details.tsx diff --git a/src/views-components/details-panel/project-details.tsx b/src/views-components/details-panel/project-details.tsx index 59035da1..61797373 100644 --- a/src/views-components/details-panel/project-details.tsx +++ b/src/views-components/details-panel/project-details.tsx @@ -16,7 +16,8 @@ import { RichTextEditorLink } from '~/components/rich-text-editor-link/rich-text import { withStyles, StyleRulesCallback, WithStyles } from '@material-ui/core'; import { ArvadosTheme } from '~/common/custom-theme'; import { Dispatch } from 'redux'; -import { PropertyChipComponent } from '../resource-properties-form/property-chip'; +import { getPropertyChip } from '../resource-properties-form/property-chip'; +import { ResourceOwnerWithName } from '../data-explorer/renderers'; export class ProjectDetails extends DetailsData { getIcon(className?: string) { @@ -59,14 +60,11 @@ const ProjectDetailsComponent = connect(null, mapDispatchToProps)( withStyles(styles)( ({ classes, project, onClick }: ProjectDetailsComponentProps) =>
- {/* Missing attr */} - - + } /> - {/* Missing attr */} - {/**/} {project.description ? { Object.keys(project.properties).map(k => - + Array.isArray(project.properties[k]) + ? project.properties[k].map((v: string) => + getPropertyChip(k, v, undefined, classes.tag)) + : getPropertyChip(k, project.properties[k], undefined, classes.tag) ) }