X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/84d9b41e00a8af3f55616ffd7a0ce47ba31ca484..92a147d8e4fd5b02264c06ec432255777cb942c7:/services/workbench2/src/views-components/project-details-card/project-details-card.tsx diff --git a/services/workbench2/src/views-components/project-details-card/project-details-card.tsx b/services/workbench2/src/views-components/project-details-card/project-details-card.tsx index 141d5d7ceb..0988d7c168 100644 --- a/services/workbench2/src/views-components/project-details-card/project-details-card.tsx +++ b/services/workbench2/src/views-components/project-details-card/project-details-card.tsx @@ -25,6 +25,7 @@ import { Dispatch } from 'redux'; import classNames from 'classnames'; import { loadDetailsPanel } from 'store/details-panel/details-panel-action'; import { ExpandChevronRight } from 'components/expand-chevron-right/expand-chevron-right'; +import { MultiselectToolbar } from 'components/multiselect-toolbar/MultiselectToolbar'; type CssRules = | 'root' @@ -288,11 +289,16 @@ const UserCard: React.FC = ({ classes, currentResource, handleCon const ProjectCard: React.FC = ({ classes, currentResource, frozenByFullName, handleContextMenu, handleCardClick, isAdmin, isSelected }) => { const { name, description, uuid } = currentResource as ProjectResource; const [showDescription, setShowDescription] = React.useState(false); + const [showProperties, setShowProperties] = React.useState(false); const toggleDescription = () => { setShowDescription(!showDescription); }; + const toggleProperties = () => { + setShowProperties(!showProperties); + }; + return ( = ({ classes, currentResource, fro )} -
ev.stopPropagation()}> - {typeof currentResource.properties === 'object' && Object.keys(currentResource.properties).length > 0 && ( - - - {Object.keys(currentResource.properties).map((k) => - Array.isArray(currentResource.properties[k]) - ? currentResource.properties[k].map((v: string) => getPropertyChip(k, v, undefined, classes.tag)) - : getPropertyChip(k, currentResource.properties[k], undefined, classes.tag) - )} - - - )} -
} action={ -
- - handleContextMenu(ev, currentResource as any, isAdmin)} - > - - - -
+ + //
+ // + // handleContextMenu(ev, currentResource as any, isAdmin)} + // > + // + // + // + //
} />
ev.stopPropagation()}> @@ -368,18 +362,18 @@ const ProjectCard: React.FC = ({ classes, currentResource, fro >
- - - {description} - - + + {description} + +
) : ( @@ -390,6 +384,36 @@ const ProjectCard: React.FC = ({ classes, currentResource, fro no description available )} + {typeof currentResource.properties === 'object' && Object.keys(currentResource.properties).length > 0 ? ( +
+ +
+ + + + + {Object.keys(currentResource.properties).map((k) => + Array.isArray(currentResource.properties[k]) + ? currentResource.properties[k].map((v: string) => getPropertyChip(k, v, undefined, classes.tag)) + : getPropertyChip(k, currentResource.properties[k], undefined, classes.tag) + )} + + + + +
+
+ ) : null}
);