|
|
@ -41,12 +41,14 @@ class InteractiveImportRow extends Component {
|
|
|
|
id,
|
|
|
|
id,
|
|
|
|
author,
|
|
|
|
author,
|
|
|
|
book,
|
|
|
|
book,
|
|
|
|
|
|
|
|
foreignEditionId,
|
|
|
|
quality
|
|
|
|
quality
|
|
|
|
} = this.props;
|
|
|
|
} = this.props;
|
|
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
author &&
|
|
|
|
author &&
|
|
|
|
book != null &&
|
|
|
|
book != null &&
|
|
|
|
|
|
|
|
foreignEditionId &&
|
|
|
|
quality
|
|
|
|
quality
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
this.props.onSelectedChange({ id, value: true });
|
|
|
|
this.props.onSelectedChange({ id, value: true });
|
|
|
@ -58,6 +60,7 @@ class InteractiveImportRow extends Component {
|
|
|
|
id,
|
|
|
|
id,
|
|
|
|
author,
|
|
|
|
author,
|
|
|
|
book,
|
|
|
|
book,
|
|
|
|
|
|
|
|
foreignEditionId,
|
|
|
|
quality,
|
|
|
|
quality,
|
|
|
|
isSelected,
|
|
|
|
isSelected,
|
|
|
|
onValidRowChange
|
|
|
|
onValidRowChange
|
|
|
@ -66,6 +69,7 @@ class InteractiveImportRow extends Component {
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
prevProps.author === author &&
|
|
|
|
prevProps.author === author &&
|
|
|
|
prevProps.book === book &&
|
|
|
|
prevProps.book === book &&
|
|
|
|
|
|
|
|
prevProps.foreignEditionId === foreignEditionId &&
|
|
|
|
prevProps.quality === quality &&
|
|
|
|
prevProps.quality === quality &&
|
|
|
|
prevProps.isSelected === isSelected
|
|
|
|
prevProps.isSelected === isSelected
|
|
|
|
) {
|
|
|
|
) {
|
|
|
@ -75,6 +79,7 @@ class InteractiveImportRow extends Component {
|
|
|
|
const isValid = !!(
|
|
|
|
const isValid = !!(
|
|
|
|
author &&
|
|
|
|
author &&
|
|
|
|
book &&
|
|
|
|
book &&
|
|
|
|
|
|
|
|
foreignEditionId &&
|
|
|
|
quality
|
|
|
|
quality
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
@ -337,6 +342,7 @@ InteractiveImportRow.propTypes = {
|
|
|
|
path: PropTypes.string.isRequired,
|
|
|
|
path: PropTypes.string.isRequired,
|
|
|
|
author: PropTypes.object,
|
|
|
|
author: PropTypes.object,
|
|
|
|
book: PropTypes.object,
|
|
|
|
book: PropTypes.object,
|
|
|
|
|
|
|
|
foreignEditionId: PropTypes.string,
|
|
|
|
quality: PropTypes.object,
|
|
|
|
quality: PropTypes.object,
|
|
|
|
size: PropTypes.number.isRequired,
|
|
|
|
size: PropTypes.number.isRequired,
|
|
|
|
rejections: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
rejections: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|