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

Commit

Permalink
Provide documentId instead of NEW, disable tabs queried in modal #676
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunkat committed Apr 27, 2017
1 parent 34e5963 commit 6e5312c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/actions/WindowActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ export function selectTableItems(ids, windowType) {
export function createWindow(
windowType, docId = 'NEW', tabId, rowId, isModal = false, isAdvanced
) {
console.log(docId);
return (dispatch) => {
if (docId == 'new') {
docId = 'NEW';
Expand Down Expand Up @@ -301,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 Expand Up @@ -626,7 +627,6 @@ export function createProcess(processType, viewId, type, ids, tabId, rowId) {
}

export function handleProcessResponse(response, type, id, successCallback) {
console.log('handleProcessResponse');
return (dispatch) => {
const {
error, summary, action
Expand Down
2 changes: 0 additions & 2 deletions src/components/app/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ class Modal extends Component {
relativeType, isAdvanced, modalViewId, modalViewDocumentIds
} = this.props;

console.log('modal');

switch(modalType){
case 'window':
dispatch(createWindow(
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 6e5312c

Please sign in to comment.