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

Commit

Permalink
Merge pull request #694 from metasfresh/dev-676
Browse files Browse the repository at this point in the history
Provide documentId instead of NEW, disable tabs queried in modal #676
  • Loading branch information
damianprzygodzki committed Apr 27, 2017
2 parents 44e72a4 + 6e5312c commit 6a82804
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/actions/WindowActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,11 @@ export function createWindow(
response.data, getScope(isModal)
))
).then(response => {
dispatch(initTabs(
response.layout.tabs, windowType, docId, isModal
))
if(!isModal){
dispatch(initTabs(
response.layout.tabs, windowType, docId, isModal
))
}
})
});
}
Expand Down
1 change: 1 addition & 0 deletions src/containers/DocList.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class DocList extends Component {
{modal.visible &&
<Modal
windowType={modal.type}
dataId={modal.dataId ? modal.dataId : ''}
data={modal.data}
layout={modal.layout}
rowData={modal.rowData}
Expand Down

0 comments on commit 6a82804

Please sign in to comment.