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 #1014 from metasfresh/dev-942
Browse files Browse the repository at this point in the history
display included view when should be displayed #942
  • Loading branch information
Dunkat committed Jul 13, 2017
2 parents c0e7523 + 98d9144 commit 65f5b07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/app/DocumentList.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ class DocumentList extends Component {
queryLimitHit={data.queryLimitHit}
doesSelectionExist={this.doesSelectionExist}
showIncludedViewOnSelect={this.showIncludedViewOnSelect}
supportIncludedViewOnSelect={layout.supportIncludedViewOnSelect}
{...{isIncluded, disconnectFromState, autofocus,
open, page, closeOverlays, inBackground,
disablePaginationShortcuts, isModal,
Expand Down
4 changes: 2 additions & 2 deletions src/components/table/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ class Table extends Component {
const {
tabid, cols, type, docId, readonly, keyProperty, onDoubleClick,
mainTable, newRow, tabIndex, entity, indentSupported, collapsible,
showIncludedViewOnSelect
showIncludedViewOnSelect, supportIncludedViewOnSelect
} = this.props;

const {
Expand Down Expand Up @@ -716,7 +716,7 @@ class Table extends Component {
}
onMouseDown={(e) => {
this.handleClick(e, item[keyProperty]);
showIncludedViewOnSelect(item.supportIncludedViews, item.includedView)
supportIncludedViewOnSelect && showIncludedViewOnSelect(item.supportIncludedViews, item.includedView)
}
}
handleRightClick={(e, fieldName) =>
Expand Down

0 comments on commit 65f5b07

Please sign in to comment.