diff --git a/frontend/scenes/DocumentScene/DocumentScene.js b/frontend/scenes/DocumentScene/DocumentScene.js index 0ce90193c..2c9f9abf1 100644 --- a/frontend/scenes/DocumentScene/DocumentScene.js +++ b/frontend/scenes/DocumentScene/DocumentScene.js @@ -88,9 +88,12 @@ class DocumentScene extends React.Component { browserHistory.push(url); } - onCreate = () => { - const url = `${this.store.document.url}/new`; - browserHistory.push(url); + onCreateDocument = () => { + browserHistory.push(`${this.store.collectionTree.url}/new`); + } + + onCreateChild = () => { + browserHistory.push(`${this.store.document.url}/new`); } onDelete = () => { @@ -142,8 +145,12 @@ class DocumentScene extends React.Component { actions = (
}> - { this.store.isCollection && - New document } + { this.store.isCollection && ( +
+ New document + New child +
+ ) } Edit Export { allowDelete && Delete } diff --git a/frontend/scenes/DocumentScene/DocumentScene.scss b/frontend/scenes/DocumentScene/DocumentScene.scss index 0fa9fdf25..d25774a15 100644 --- a/frontend/scenes/DocumentScene/DocumentScene.scss +++ b/frontend/scenes/DocumentScene/DocumentScene.scss @@ -7,3 +7,7 @@ position: relative; overflow: scroll; } + +.menuGroup { + border-bottom: 1px solid #eee; +} diff --git a/frontend/scenes/DocumentScene/components/Sidebar/Sidebar.js b/frontend/scenes/DocumentScene/components/Sidebar/Sidebar.js index b03fe45f1..de4ce7b2b 100644 --- a/frontend/scenes/DocumentScene/components/Sidebar/Sidebar.js +++ b/frontend/scenes/DocumentScene/components/Sidebar/Sidebar.js @@ -50,18 +50,18 @@ class Sidebar extends React.Component { /> - - Add document - - - + Drag & drop to organize   + + ) } + Organize + > + { !this.store.isEditing ? 'Organize documents' : 'Save' } + ) }