mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 18:35:09 +01:00
Fix simple comments in pr
This commit is contained in:
parent
85340a9126
commit
8b3060d613
@ -10,6 +10,8 @@ import ApiUrls from '../../constants/api_urls';
|
|||||||
import AppConstants from '../../constants/application_constants';
|
import AppConstants from '../../constants/application_constants';
|
||||||
|
|
||||||
import { getCookie } from '../../utils/fetch_api_utils';
|
import { getCookie } from '../../utils/fetch_api_utils';
|
||||||
|
import { getLangText } from '../../utils/lang_utils';
|
||||||
|
|
||||||
|
|
||||||
let FurtherDetailsFileuploader = React.createClass({
|
let FurtherDetailsFileuploader = React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
@ -26,7 +28,7 @@ let FurtherDetailsFileuploader = React.createClass({
|
|||||||
|
|
||||||
getDefaultProps() {
|
getDefaultProps() {
|
||||||
return {
|
return {
|
||||||
label: 'Additional files',
|
label: getLangText('Additional files'),
|
||||||
multiple: false
|
multiple: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -53,8 +53,8 @@ let MarketSubmitButton = React.createClass({
|
|||||||
const { extra_data, other_data } = edition;
|
const { extra_data, other_data } = edition;
|
||||||
|
|
||||||
if (extra_data.artist_bio && extra_data.work_description &&
|
if (extra_data.artist_bio && extra_data.work_description &&
|
||||||
extra_data.technology_details && extra_data.display_instructions &&
|
extra_data.technology_details && extra_data.display_instructions &&
|
||||||
other_data.length > 0) {
|
other_data.length > 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import Property from '../../../../../ascribe_forms/property';
|
|||||||
import InputTextAreaToggable from '../../../../../ascribe_forms/input_textarea_toggable';
|
import InputTextAreaToggable from '../../../../../ascribe_forms/input_textarea_toggable';
|
||||||
|
|
||||||
import FurtherDetailsFileuploader from '../../../../../ascribe_detail/further_details_fileuploader';
|
import FurtherDetailsFileuploader from '../../../../../ascribe_detail/further_details_fileuploader';
|
||||||
|
import AscribeSpinner from '../../../../../ascribe_spinner';
|
||||||
|
|
||||||
import GlobalNotificationModel from '../../../../../../models/global_notification_model';
|
import GlobalNotificationModel from '../../../../../../models/global_notification_model';
|
||||||
import GlobalNotificationActions from '../../../../../../actions/global_notification_actions';
|
import GlobalNotificationActions from '../../../../../../actions/global_notification_actions';
|
||||||
@ -24,6 +25,7 @@ import requests from '../../../../../../utils/requests';
|
|||||||
import { mergeOptions } from '../../../../../../utils/general_utils';
|
import { mergeOptions } from '../../../../../../utils/general_utils';
|
||||||
import { getLangText } from '../../../../../../utils/lang_utils';
|
import { getLangText } from '../../../../../../utils/lang_utils';
|
||||||
|
|
||||||
|
|
||||||
let MarketAdditionalDataForm = React.createClass({
|
let MarketAdditionalDataForm = React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
pieceId: React.PropTypes.oneOfType([
|
pieceId: React.PropTypes.oneOfType([
|
||||||
@ -96,7 +98,7 @@ let MarketAdditionalDataForm = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
isUploadReadyOnChange(piece) {
|
isUploadReadyOnChange(piece) {
|
||||||
return piece && piece.other_data && piece.other_data.length > 0 ? true : false;
|
return piece && piece.other_data && piece.other_data.length > 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSuccessWithNotification() {
|
handleSuccessWithNotification() {
|
||||||
@ -211,7 +213,7 @@ let MarketAdditionalDataForm = React.createClass({
|
|||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<div className="ascribe-loading-position">
|
<div className="ascribe-loading-position">
|
||||||
<img src={AppConstants.baseUrl + 'static/img/ascribe_animated_medium.gif'} />
|
<AscribeSpinner color='dark-blue' size='lg' />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -35,8 +35,6 @@ let MarketRegisterPiece = React.createClass({
|
|||||||
UserStore.getState(),
|
UserStore.getState(),
|
||||||
PieceListStore.getState(),
|
PieceListStore.getState(),
|
||||||
{
|
{
|
||||||
selectedLicense: 0,
|
|
||||||
isFineUploaderActive: false,
|
|
||||||
step: 0
|
step: 0
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -58,13 +56,6 @@ let MarketRegisterPiece = React.createClass({
|
|||||||
|
|
||||||
onChange(state) {
|
onChange(state) {
|
||||||
this.setState(state);
|
this.setState(state);
|
||||||
|
|
||||||
if (this.state.currentUser && this.state.currentUser.email) {
|
|
||||||
// we should also make the fineuploader component editable again
|
|
||||||
this.setState({
|
|
||||||
isFineUploaderActive: true
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
handleRegisterSuccess(response) {
|
handleRegisterSuccess(response) {
|
||||||
@ -140,7 +131,7 @@ let MarketRegisterPiece = React.createClass({
|
|||||||
enableLocalHashing={false}
|
enableLocalHashing={false}
|
||||||
headerMessage={getLangText('Consign to Market')}
|
headerMessage={getLangText('Consign to Market')}
|
||||||
submitMessage={getLangText('Proceed to additional details')}
|
submitMessage={getLangText('Proceed to additional details')}
|
||||||
isFineUploaderActive={this.state.isFineUploaderActive}
|
isFineUploaderActive={true}
|
||||||
handleSuccess={this.handleRegisterSuccess}
|
handleSuccess={this.handleRegisterSuccess}
|
||||||
onLoggedOut={this.onLoggedOut}
|
onLoggedOut={this.onLoggedOut}
|
||||||
location={this.props.location}>
|
location={this.props.location}>
|
||||||
|
@ -228,16 +228,6 @@ let ROUTES = {
|
|||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
function getRoutes(commonRoutes, subdomain) {
|
|
||||||
if(subdomain in ROUTES) {
|
|
||||||
return ROUTES[subdomain];
|
|
||||||
} else {
|
|
||||||
throw new Error('Subdomain wasn\'t specified in the wallet app.');
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
function getRoutes(commonRoutes, subdomain) {
|
function getRoutes(commonRoutes, subdomain) {
|
||||||
if(subdomain in ROUTES) {
|
if(subdomain in ROUTES) {
|
||||||
return ROUTES[subdomain];
|
return ROUTES[subdomain];
|
||||||
@ -246,5 +236,4 @@ function getRoutes(commonRoutes, subdomain) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export default getRoutes;
|
export default getRoutes;
|
||||||
|
Loading…
Reference in New Issue
Block a user