Skip to content
Snippets Groups Projects
Unverified Commit 9c226213 authored by Kyle Doherty's avatar Kyle Doherty
Browse files

don't show edit or archive on root collection

parent dec7ff44
No related branches found
No related tags found
No related merge requests found
......@@ -291,6 +291,7 @@ class CollectionLanding extends React.Component {
render() {
const { params, currentCollection } = this.props;
const collectionId = params.collectionId;
const isRoot = collectionId === "root";
return (
<Box mx={4}>
......@@ -304,9 +305,7 @@ class CollectionLanding extends React.Component {
to={`/collection/${collectionId}`}
hover={{ color: normal.blue }}
>
{collectionId === "root"
? "Saved items"
: currentCollection.name}
{isRoot ? "Saved items" : currentCollection.name}
</Link>
</Flex>
)}
......@@ -342,7 +341,7 @@ class CollectionLanding extends React.Component {
<Box mx={1}>
<EntityMenu
items={[
...(collectionId
...(!isRoot
? [
{
title: t`Edit this collection`,
......@@ -358,7 +357,7 @@ class CollectionLanding extends React.Component {
currentCollection.id
}`,
},
...(collectionId
...(!isRoot
? [
{
title: t`Archive this collection`,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment