Journal members: show if a member is shared with as read-only.

master
Tom Hacohen 5 years ago
parent c907285d78
commit 8e542f6fd7

@ -5,6 +5,7 @@ import { List, ListItem } from '../widgets/List';
import { Theme, withTheme } from '@material-ui/core/styles';
import IconMemberAdd from '@material-ui/icons/PersonAdd';
import VisibilityIcon from '@material-ui/icons/Visibility';
import AppBarOverride from '../widgets/AppBarOverride';
import Container from '../widgets/Container';
@ -61,7 +62,11 @@ class JournalMembers extends React.PureComponent<PropsTypeInner> {
</ListItem>
{(members.length > 0 ?
members.map((member) => (
<ListItem key={member.user} onClick={() => this.onRevokeRequest(member.user)}>
<ListItem
key={member.user}
onClick={() => this.onRevokeRequest(member.user)}
rightIcon={(member.readOnly) ? (<VisibilityIcon />) : undefined}
>
{member.user}
</ListItem>
))

Loading…
Cancel
Save