mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
Change additional form's button text when not in registration flow
This commit is contained in:
parent
8f14b27eac
commit
4664a48898
@ -129,7 +129,8 @@ let MarketSubmitButton = React.createClass({
|
|||||||
handleSuccess={this.handleAdditionalDataSuccess.bind(this, solePieceId)}
|
handleSuccess={this.handleAdditionalDataSuccess.bind(this, solePieceId)}
|
||||||
title={getLangText('Add additional information')}>
|
title={getLangText('Add additional information')}>
|
||||||
<MarketAdditionalDataForm
|
<MarketAdditionalDataForm
|
||||||
pieceId={solePieceId} />
|
pieceId={solePieceId}
|
||||||
|
submitLabel={getLangText('Continue to consignment')} />
|
||||||
</ModalWrapper>
|
</ModalWrapper>
|
||||||
|
|
||||||
<ModalWrapper
|
<ModalWrapper
|
||||||
|
@ -35,9 +35,16 @@ let MarketAdditionalDataForm = React.createClass({
|
|||||||
isInline: React.PropTypes.bool,
|
isInline: React.PropTypes.bool,
|
||||||
showHeading: React.PropTypes.bool,
|
showHeading: React.PropTypes.bool,
|
||||||
showNotification: React.PropTypes.bool,
|
showNotification: React.PropTypes.bool,
|
||||||
|
submitLabel: React.PropTypes.bool,
|
||||||
handleSuccess: React.PropTypes.func
|
handleSuccess: React.PropTypes.func
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getDefaultProps() {
|
||||||
|
return {
|
||||||
|
submitLabel: getLangText('Register work')
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
getInitialState() {
|
getInitialState() {
|
||||||
const pieceStore = PieceStore.getState();
|
const pieceStore = PieceStore.getState();
|
||||||
|
|
||||||
@ -123,7 +130,7 @@ let MarketAdditionalDataForm = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { isInline, handleSuccess, showHeading, showNotification } = this.props;
|
const { isInline, handleSuccess, showHeading, showNotification, submitLabel } = this.props;
|
||||||
const { piece } = this.state;
|
const { piece } = this.state;
|
||||||
let buttons, spinner, heading;
|
let buttons, spinner, heading;
|
||||||
|
|
||||||
@ -133,7 +140,7 @@ let MarketAdditionalDataForm = React.createClass({
|
|||||||
type="submit"
|
type="submit"
|
||||||
className="btn btn-default btn-wide"
|
className="btn btn-default btn-wide"
|
||||||
disabled={!this.state.isUploadReady}>
|
disabled={!this.state.isUploadReady}>
|
||||||
{getLangText('Register work')}
|
{submitLabel}
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user