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

Commit

Permalink
#526 Process from home menu works
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Mar 21, 2017
1 parent 62868c4 commit ac2006d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/actions/WindowActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,6 @@ export function createProcess(processType, viewId, type, ids, tabId, rowId) {
throw new Error('close_modal');
}else{
dispatch(initDataSuccess(preparedData, 'modal'));

dispatch(initLayout('process', processType)).then(response => {
const preparedLayout = Object.assign({}, response.data, {
pinstanceId: pid
Expand Down
3 changes: 2 additions & 1 deletion src/components/header/MenuOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class MenuOverlay extends Component {

renderNaviagtion = (node) => {
const {path} = this.state;
const {handleMenuOverlay} = this.props;
const {handleMenuOverlay, openModal} = this.props;
return (
<div
className="menu-overlay-container-column-wrapper js-menu-overlay"
Expand All @@ -209,6 +209,7 @@ class MenuOverlay extends Component {
parent={node}
back={e => this.handleClickBack(e)}
handleMenuOverlay={handleMenuOverlay}
openModal={openModal}
{...item}
/>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/containers/DocList.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ class DocList extends Component {
rawModalVisible={rawModal.visible}
indicator={indicator}
isDocumentNotSaved={
!modal.saveStatus.saved &&
!modal.validStatus.initialValue
(modal.saveStatus && !modal.saveStatus.saved) &&
(modal.validStatus && !modal.validStatus.initialValue)
}
/>
}
Expand Down
4 changes: 2 additions & 2 deletions src/containers/MasterWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ class MasterWindow extends Component {
rawModalVisible={rawModal.visible}
indicator={indicator}
isDocumentNotSaved={
!modal.saveStatus.saved &&
!modal.validStatus.initialValue
(modal.saveStatus && !modal.saveStatus.saved) &&
(modal.validStatus && !modal.validStatus.initialValue)
}
/>
}
Expand Down

0 comments on commit ac2006d

Please sign in to comment.