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

Commit

Permalink
grid view: automatically open the included view when clicking on a row
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunkat committed Jul 4, 2017
1 parent 8ddb69a commit 9dc3c30
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/components/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ class Container extends Component {
modalDescription, editmode, handleEditModeToggle
} = this.props;

console.log(includedView);

return (
<div>
{
Expand Down
11 changes: 8 additions & 3 deletions src/components/app/DocumentList.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,17 @@ class DocumentList extends Component {
}
}

showIncludedViewOnSelect = (showIncludedView) => {
this.setState({
showIncludedViewOnSelect = (showIncludedView, data) => {
const {
dispatch
} = this.props;

showIncludedView && this.setState({
isShowIncluded: showIncludedView ? true : false,
hasShowIncluded: showIncludedView ? true : false
}, ()=> {
dispatch(setListIncludedView(data.windowId, data.viewId));
});
console.log(showIncludedView);
}

render() {
Expand Down
2 changes: 0 additions & 2 deletions src/components/app/QuickActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ class QuickActions extends Component {
return;
}

console.log(action);

dispatch(
openModal(
action.caption, action.processId, 'process', null, null, false,
Expand Down
2 changes: 1 addition & 1 deletion src/components/table/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ class Table extends Component {
}
onMouseDown={(e) => {
this.handleClick(e, item[keyProperty]);
showIncludedViewOnSelect(item.supportIncludedViews)
showIncludedViewOnSelect(item.supportIncludedViews, item.includedView)
}
}
handleRightClick={(e, fieldName) =>
Expand Down

0 comments on commit 9dc3c30

Please sign in to comment.