Commit 7e217a83 authored by Marco Sehrer's avatar Marco Sehrer
Browse files

Root redirects to /collection/all

parent d9652936
...@@ -16,13 +16,9 @@ Aviator.root = '/'; ...@@ -16,13 +16,9 @@ Aviator.root = '/';
Aviator.pushStateEnabled = false; Aviator.pushStateEnabled = false;
Aviator.setRoutes({ Aviator.setRoutes({
'/': 'root', '/': 'root',
target: { target: {
root: function(e) { root: function(e) {
// let modalDomNode = document.getElementById('modal'); Aviator.navigate('/collections/all');
// if(modalDomNode) {
// React.unmountComponentAtNode(modalDomNode);
// }
} }
}, },
......
...@@ -65,7 +65,7 @@ export default class CollectionTree extends React.Component { ...@@ -65,7 +65,7 @@ export default class CollectionTree extends React.Component {
render() { render() {
//Fake All-Collection //Fake All-Collection
let allCollection = { let allCollection = {
label: 'All *', label: 'All',
id: 'all', id: 'all',
children: [], children: [],
descendant_ids: [] descendant_ids: []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment