X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/bc49fa261517a5027980570a903b6b6aa5c1f82a..d4efd52e7e68c739dad1095267b6c8f0bf4a40fa:/src/views/collection-panel/collection-panel.tsx diff --git a/src/views/collection-panel/collection-panel.tsx b/src/views/collection-panel/collection-panel.tsx index be2afc72..36625387 100644 --- a/src/views/collection-panel/collection-panel.tsx +++ b/src/views/collection-panel/collection-panel.tsx @@ -5,7 +5,7 @@ import * as React from 'react'; import { StyleRulesCallback, WithStyles, withStyles, Card, - CardHeader, IconButton, CardContent, Grid, Tooltip, Chip + CardHeader, IconButton, CardContent, Grid, Tooltip } from '@material-ui/core'; import { connect, DispatchProp } from "react-redux"; import { RouteComponentProps } from 'react-router'; @@ -29,7 +29,7 @@ import { GroupResource } from '~/models/group'; import { UserResource } from '~/models/user'; import { getUserUuid } from '~/common/getuser'; -type CssRules = 'card' | 'iconHeader' | 'tag' | 'label' | 'value' | 'link' | 'centeredLabel'; +type CssRules = 'card' | 'iconHeader' | 'tag' | 'label' | 'value' | 'link' | 'centeredLabel' | 'readOnlyIcon'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ card: { @@ -60,6 +60,10 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ '&:hover': { cursor: 'pointer' } + }, + readOnlyIcon: { + marginLeft: theme.spacing.unit, + fontSize: 'small', } }); @@ -101,6 +105,7 @@ export const CollectionPanel = withStyles(styles)( action={ @@ -111,7 +116,11 @@ export const CollectionPanel = withStyles(styles)( {item.name} - {isWritable || } label="Read-only"/>} + {isWritable || + + + + } } titleTypographyProps={this.titleProps} @@ -142,7 +151,7 @@ export const CollectionPanel = withStyles(styles)( - + @@ -173,7 +182,7 @@ export const CollectionPanel = withStyles(styles)( -
+