feat: add padlock next to private collections in lists

This commit is contained in:
Tom Moor 2019-08-28 21:41:40 -07:00
parent 79f8a41b5b
commit b56f8e7870
1 changed files with 11 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import { Link } from 'react-router-dom';
import {
CollectionIcon,
PrivateCollectionIcon,
PadlockIcon,
GoToIcon,
MoreIcon,
} from 'outline-icons';
@ -32,6 +33,11 @@ const Breadcrumb = observer(({ document, collections, onlyText }: Props) => {
if (onlyText === true) {
return (
<React.Fragment>
{collection.private && (
<React.Fragment>
<SmallPadlockIcon color="currentColor" size={16} />{' '}
</React.Fragment>
)}
{collection.name}
{path.map(n => (
<React.Fragment key={n.id}>
@ -83,6 +89,11 @@ const Wrapper = styled(Flex)`
`};
`;
const SmallPadlockIcon = styled(PadlockIcon)`
display: inline-block;
vertical-align: sub;
`;
const SmallSlash = styled(GoToIcon)`
width: 15px;
height: 10px;