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

Commit

Permalink
#630 Caching selection, to allow work 3 nested gridviews at the same …
Browse files Browse the repository at this point in the history
…time (wip)
  • Loading branch information
damianprzygodzki committed Apr 14, 2017
1 parent 81dc72c commit 1d21983
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ body {
}

.document-list-included {
flex: 1;
margin-left: .5rem;
flex: 2;
margin-left: .1rem;
overflow: auto;
overflow-x: hidden;
}
Expand Down
9 changes: 7 additions & 2 deletions src/components/app/DocumentList.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,13 @@ class DocumentList extends Component {
/>}
</div>
<QuickActions
windowType={windowType}
viewId={viewId}
windowType={
(includedView && includedView.windowType) ?
includedView.windowType : windowType
}
viewId={(includedView && includedView.viewId) ?
includedView.viewId : viewId
}
selected={selectionValid ? selected : undefined}
refresh={refresh}
shouldNotUpdate={inBackground}
Expand Down
1 change: 1 addition & 0 deletions src/components/table/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class Table extends Component {
JSON.stringify(nextState.selected) !==
JSON.stringify(this.state.selected)
){
console.log('tabela')
dispatch(selectTableItems(nextState.selected, type));
}
}
Expand Down
1 change: 1 addition & 0 deletions src/components/table/TablePagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ class TablePagination extends Component {
return (
<div className="pagination-wrapper">
<div className="pagination-row">
{compressed && <div />}
{!compressed && this.renderSelectAll()}

<div className="items-row-2 pagination-part">
Expand Down
3 changes: 3 additions & 0 deletions src/containers/DocList.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ class DocList extends Component {
isModal={true}
processStatus={processStatus}
includedView={includedView}
inBackground={
includedView.windowType && includedView.viewId
}
>
<DocumentList
type="grid"
Expand Down

0 comments on commit 1d21983

Please sign in to comment.