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

Commit

Permalink
#447 Not saved indicator for rows (waiting for API)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Mar 6, 2017
1 parent e498e83 commit d06967f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/assets/css/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,20 @@
border-bottom: 2px solid #ddd;
}

.row-not-saved {
background-color: #FEDADA !important;
border-top: 2px solid #e78484;
border-bottom: 2px solid #e78484;
}

.row-selected {
background-color: #d5e3ec !important;
}

.row-selected.row-not-saved {
background-color: #d6a4a4 !important;
}

.table-sub-summary-row {
background-color: #fff !important;
border-top: 1px solid $brand-color-secondary;
Expand Down
7 changes: 5 additions & 2 deletions src/components/table/TableItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ class TableItem extends Component {
render() {
const {
isSelected, fields, cols, onMouseDown, onDoubleClick, odd, handleRightClick,
indentSupported, contextType, item, lastSibling, includedDocuments
indentSupported, contextType, item, lastSibling, includedDocuments,
notSaved
} = this.props;

return (
Expand All @@ -207,7 +208,9 @@ class TableItem extends Component {
(item.processed ? 'row-disabled ': '') +
((item.processed && lastSibling && !includedDocuments) ?
'row-boundary ': ''
)
) +
// TODO: waiting for API
(notSaved ? 'row-not-saved ': '')
}
>
{indentSupported &&
Expand Down

0 comments on commit d06967f

Please sign in to comment.