Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Jun 22, 2017
1 parent be77120 commit 35a44d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/header/MenuOverlayItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class MenuOverlayItem extends Component {
const {
handleClickOnFolder, handleNewRedirect, openModal, caption
} = this.props;

if(type === 'newRecord'){
handleNewRedirect(elementId);
} else if (type === 'window' || type === 'board') {
Expand Down
6 changes: 4 additions & 2 deletions src/containers/NavigationTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,11 @@ class NavigationTree extends Component {
}
}

handleRedirect = (elementId) => {
handleRedirect = (elementId, isNew, type) => {
const {dispatch} = this.props;
dispatch(push('/window/' + elementId));
dispatch(push(
'/' + (type ? type : 'window') + '/' + elementId
));
}

handleNewRedirect = (elementId) => {
Expand Down

0 comments on commit 35a44d6

Please sign in to comment.