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 #684 from metasfresh/dev-676
Browse files Browse the repository at this point in the history
Process result: implement openDocument as modal #676
  • Loading branch information
damianprzygodzki committed Apr 25, 2017
2 parents f5333a0 + e781a56 commit bc4424d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/actions/WindowActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,10 +644,19 @@ export function handleProcessResponse(response, type, id, successCallback) {
));
break;
case 'openDocument':
dispatch(push(
'/window/' + action.windowId +
'/' + action.documentId
));
if(action.modal) {
dispatch(
openModal(
'', action.windowId, 'window', null, null,
true, '', '', action.documentId
)
);
} else {
dispatch(push(
'/window/' + action.windowId +
'/' + action.documentId
));
}
break;
case 'openIncludedView':
dispatch(setListIncludedView(
Expand Down

0 comments on commit bc4424d

Please sign in to comment.