Show/Hide Price on Publish Form #1316

Merged
ykris45 merged 1 commit from patch-1 into master 2018-04-16 23:14:42 +02:00
Showing only changes of commit 460c0fc3fd - Show all commits

View file

@ -394,14 +394,14 @@ class PublishForm extends React.PureComponent<Props> {
disabled={formDisabled} disabled={formDisabled}
onChange={() => updatePublishForm({ contentIsFree: false })} onChange={() => updatePublishForm({ contentIsFree: false })}
/> />
{!contentIsFree && (
<FormFieldPrice <FormFieldPrice
name="content_cost_amount" name="content_cost_amount"
min="0" min="0"
price={price} price={price}
onChange={newPrice => updatePublishForm({ price: newPrice })} onChange={newPrice => updatePublishForm({ price: newPrice })}
disabled={formDisabled || contentIsFree}
/> />
)}
{price.currency !== 'LBC' && ( {price.currency !== 'LBC' && (
<p className="form-field__help"> <p className="form-field__help">
{__( {__(