Show/Hide Price on Publish Form #1316
1 changed files with 8 additions and 8 deletions
|
@ -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">
|
||||||
{__(
|
{__(
|
||||||
|
|
Loading…
Reference in a new issue