diff --git a/client/modules/IDE/components/CollectionList/CollectionList.jsx b/client/modules/IDE/components/CollectionList/CollectionList.jsx
index 930ce797..699ccc5b 100644
--- a/client/modules/IDE/components/CollectionList/CollectionList.jsx
+++ b/client/modules/IDE/components/CollectionList/CollectionList.jsx
@@ -91,7 +91,7 @@ class CollectionList extends React.Component {
const username = this.props.username !== undefined ? this.props.username : this.props.user.username;
return (
-
+
{this.getTitle()}
@@ -116,7 +116,6 @@ class CollectionList extends React.Component {
collection={collection}
user={this.props.user}
username={username}
- addMode={this.props.addMode}
project={this.props.project}
/>))}
@@ -143,7 +142,6 @@ const ItemsShape = PropTypes.shape({
});
CollectionList.propTypes = {
- addMode: PropTypes.bool,
user: PropTypes.shape({
username: PropTypes.string,
authenticated: PropTypes.bool.isRequired
@@ -176,7 +174,6 @@ CollectionList.propTypes = {
};
CollectionList.defaultProps = {
- addMode: false,
project: {
id: undefined,
owner: undefined
diff --git a/client/modules/IDE/components/CollectionList/CollectionListRow.jsx b/client/modules/IDE/components/CollectionList/CollectionListRow.jsx
index ef94e40c..be460306 100644
--- a/client/modules/IDE/components/CollectionList/CollectionListRow.jsx
+++ b/client/modules/IDE/components/CollectionList/CollectionListRow.jsx
@@ -81,38 +81,10 @@ class CollectionListRowBase extends React.Component {
}
}
- handleCollectionAdd = () => {
- this.props.addToCollection(this.props.collection.id, this.props.project.id);
- }
-
- handleCollectionRemove = () => {
- this.props.removeFromCollection(this.props.collection.id, this.props.project.id);
- }
-
- handleAddRemove = (evt) => {
- // Clicking on View action should not perform add/remove
- const didOriginateInLink = evt.target.nodeName === 'A';
-
- if (didOriginateInLink) {
- return;
- }
-
- if (CollectionListRowBase.projectInCollection(this.props.project, this.props.collection)) {
- this.handleCollectionRemove();
- } else {
- this.handleCollectionAdd();
- }
- }
-
renderActions = () => {
const { optionsOpen } = this.state;
const userIsOwner = this.props.user.username === this.props.username;
- if (this.props.addMode === true && this.props.project) {
- return View;
- }
-
-
return (