{this.getTitle()}
-
-
-
Create collection
+
-
-
+
);
}
}
diff --git a/client/modules/User/pages/DashboardView.jsx b/client/modules/User/pages/DashboardView.jsx
index 9ed71e91..534111ff 100644
--- a/client/modules/User/pages/DashboardView.jsx
+++ b/client/modules/User/pages/DashboardView.jsx
@@ -5,12 +5,14 @@ import { bindActionCreators } from 'redux';
import { browserHistory, Link } from 'react-router';
import { updateSettings, initiateVerification, createApiKey, removeApiKey } from '../actions';
import Nav from '../../../components/Nav';
+import Overlay from '../../App/components/Overlay';
import AssetList from '../../IDE/components/AssetList';
import CollectionList from '../../IDE/components/CollectionList';
import SketchList from '../../IDE/components/SketchList';
import Searchbar from '../../IDE/components/Searchbar';
+import CollectionCreate from '../components/CollectionCreate';
import DashboardTabSwitcher, { TabKey } from '../components/DashboardTabSwitcher';
class DashboardView extends React.Component {
@@ -60,6 +62,15 @@ class DashboardView extends React.Component {
return this.props.user.username === this.props.params.username;
}
+ isCollectionCreate() {
+ const path = this.props.location.pathname;
+ return /collections\/create$/.test(path);
+ }
+
+ returnToDashboard = () => {
+ browserHistory.push(`/${this.ownerName()}/collections`);
+ }
+
renderActionButton(tabKey, username) {
if (!this.isOwner()) {
return null;
@@ -111,6 +122,14 @@ class DashboardView extends React.Component {
{this.renderContent(currentTab, username)}