Merge pull request #1316 from ykris45/patch-1

Show/Hide Price on Publish Form
This commit is contained in:
Sean Yesmunt 2018-04-16 17:14:41 -04:00 committed by GitHub
commit 2ea96064c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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