diff --git a/js/components/ascribe_detail/further_details.js b/js/components/ascribe_detail/further_details.js
index edbdfdcf..54e696c9 100644
--- a/js/components/ascribe_detail/further_details.js
+++ b/js/components/ascribe_detail/further_details.js
@@ -15,6 +15,8 @@ import PieceExtraDataForm from './../ascribe_forms/form_piece_extradata';
import { formSubmissionValidation } from '../ascribe_uploader/react_s3_fine_uploader_utils';
+import { getLangText } from '../../utils/lang_utils';
+
let FurtherDetails = React.createClass({
propTypes: {
@@ -33,11 +35,13 @@ let FurtherDetails = React.createClass({
},
showNotification() {
- if (typeof this.props.handleSucess === 'function') {
- this.props.handleSuccess();
+ const { handleSuccess } = this.props;
+
+ if (typeof handleSucess === 'function') {
+ handleSuccess();
}
- const notification = new GlobalNotificationModel('Details updated', 'success');
+ const notification = new GlobalNotificationModel(getLangText('Details updated'), 'success');
GlobalNotificationActions.appendGlobalNotification(notification);
},
diff --git a/js/components/ascribe_detail/piece_container.js b/js/components/ascribe_detail/piece_container.js
index a7c96356..cd1559a2 100644
--- a/js/components/ascribe_detail/piece_container.js
+++ b/js/components/ascribe_detail/piece_container.js
@@ -194,7 +194,7 @@ let PieceContainer = React.createClass({
PieceListActions.fetchPieceList(this.state.page, this.state.pageSize, this.state.search,
this.state.orderBy, this.state.orderAsc, this.state.filterBy);
- const notification = new GlobalNotificationModel('Editions successfully created', 'success', 10000);
+ const notification = new GlobalNotificationModel(getLangText('Editions successfully created'), 'success', 10000);
GlobalNotificationActions.appendGlobalNotification(notification);
},
diff --git a/js/components/whitelabel/prize/simple_prize/components/ascribe_detail/prize_piece_container.js b/js/components/whitelabel/prize/simple_prize/components/ascribe_detail/prize_piece_container.js
index d59bf27d..b027e2ab 100644
--- a/js/components/whitelabel/prize/simple_prize/components/ascribe_detail/prize_piece_container.js
+++ b/js/components/whitelabel/prize/simple_prize/components/ascribe_detail/prize_piece_container.js
@@ -141,7 +141,7 @@ let PrizePieceContainer = React.createClass({
}
// Only show the artist email if you are a judge and the piece is shortlisted
- const artistEmail = (currentUser.is_judge && piece.selected ) ? (
+ const artistEmail = currentUser.is_judge && piece.selected ? (
@@ -406,7 +406,7 @@ let PrizePieceRatings = React.createClass({
ratingAmount={5} />
{ return { 'piece_id': this.props.piece.id }; }}
+ id={() => ({ 'piece_id': this.props.piece.id })}
label={getLangText('Jury note')}
defaultValue={this.props.piece.note_from_user || null}
placeholder={getLangText('Enter your comments ...')}
diff --git a/js/components/whitelabel/wallet/components/cyland/cyland_forms/cyland_additional_data_form.js b/js/components/whitelabel/wallet/components/cyland/cyland_forms/cyland_additional_data_form.js
index b4f20872..6e643134 100644
--- a/js/components/whitelabel/wallet/components/cyland/cyland_forms/cyland_additional_data_form.js
+++ b/js/components/whitelabel/wallet/components/cyland/cyland_forms/cyland_additional_data_form.js
@@ -105,13 +105,15 @@ let CylandAdditionalDataForm = React.createClass({
);
}
- if (piece.id && piece.extra_data) {
+ if (piece.id) {
+ const { extra_data: extraData = {} } = piece;
+
return (
diff --git a/js/components/whitelabel/wallet/components/ikonotv/ikonotv_forms/ikonotv_artwork_details_form.js b/js/components/whitelabel/wallet/components/ikonotv/ikonotv_forms/ikonotv_artwork_details_form.js
index 9c2c3e33..28c67c94 100644
--- a/js/components/whitelabel/wallet/components/ikonotv/ikonotv_forms/ikonotv_artwork_details_form.js
+++ b/js/components/whitelabel/wallet/components/ikonotv/ikonotv_forms/ikonotv_artwork_details_form.js
@@ -52,7 +52,7 @@ let IkonotvArtworkDetailsForm = React.createClass({
},
handleSuccess() {
- const notification = new GlobalNotificationModel('Artwork details successfully updated', 'success', 10000);
+ const notification = new GlobalNotificationModel(getLangText('Artwork details successfully updated'), 'success', 10000);
GlobalNotificationActions.appendGlobalNotification(notification);
},
@@ -91,6 +91,8 @@ let IkonotvArtworkDetailsForm = React.createClass({
}
if (piece.id && piece.extra_data) {
+ const { extra_data: extraData = {} } = piece;
+
return (
diff --git a/js/components/whitelabel/wallet/components/market/market_buttons/market_submit_button.js b/js/components/whitelabel/wallet/components/market/market_buttons/market_submit_button.js
index 3e6b1a81..c839dea0 100644
--- a/js/components/whitelabel/wallet/components/market/market_buttons/market_submit_button.js
+++ b/js/components/whitelabel/wallet/components/market/market_buttons/market_submit_button.js
@@ -53,12 +53,16 @@ let MarketSubmitButton = React.createClass({
canEditionBeSubmitted(edition) {
if (edition && edition.extra_data && edition.other_data) {
- const { extra_data: extraData, other_data: otherData } = edition;
+ const {
+ extra_data: {
+ artist_bio: artistBio,
+ display_instructions: displayInstructions,
+ technology_details: technologyDetails,
+ work_description: workDescription
+ },
+ other_data: otherData } = edition;
- if (extraData.artist_bio && extraData.work_description && extraData.technology_details &&
- extraData.display_instructions && otherData.length) {
- return true;
- }
+ return artistBio && displayInstructions && technologyDetails && workDescription && otherData.length;
}
return false;
diff --git a/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js b/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js
index c8c1dae4..596ceab6 100644
--- a/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js
+++ b/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js
@@ -215,7 +215,7 @@ let MarketAdditionalDataForm = React.createClass({
} else {
return (
);
}