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

Provide documentId instead of NEW, disable tabs queried in modal #676 #694

Merged
merged 2 commits into from
Apr 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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