Hide Price Form Field #1315
1 changed files with 21 additions and 25 deletions
|
@ -185,21 +185,21 @@ class SettingsPage extends React.PureComponent<Props, State> {
|
||||||
checked={!daemonSettings.disable_max_key_fee}
|
checked={!daemonSettings.disable_max_key_fee}
|
||||||
postfix={__('Choose limit')}
|
postfix={__('Choose limit')}
|
||||||
/>
|
/>
|
||||||
<FormFieldPrice
|
{!daemonSettings.disable_max_key_fee && (
|
||||||
name="max_key_fee"
|
<FormFieldPrice
|
||||||
label="Max purchase price"
|
name="max_key_fee"
|
||||||
min={0}
|
label="Max purchase price"
|
||||||
onChange={this.onKeyFeeChange}
|
min={0}
|
||||||
disabled={daemonSettings.disable_max_key_fee}
|
onChange={this.onKeyFeeChange}
|
||||||
price={
|
price={
|
||||||
daemonSettings.max_key_fee
|
daemonSettings.max_key_fee
|
||||||
? daemonSettings.max_key_fee
|
? daemonSettings.max_key_fee
|
||||||
: { currency: 'USD', amount: 50 }
|
: { currency: 'USD', amount: 50 }
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="card card--section">
|
<section className="card card--section">
|
||||||
<div className="card__title">{__('Purchase Confirmations')}</div>
|
<div className="card__title">{__('Purchase Confirmations')}</div>
|
||||||
<div className="card__subtitle">
|
<div className="card__subtitle">
|
||||||
|
@ -217,7 +217,6 @@ class SettingsPage extends React.PureComponent<Props, State> {
|
||||||
this.onInstantPurchaseEnabledChange(false);
|
this.onInstantPurchaseEnabledChange(false);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<FormField
|
<FormField
|
||||||
type="radio"
|
type="radio"
|
||||||
name="instant_purchases"
|
name="instant_purchases"
|
||||||
|
@ -227,16 +226,16 @@ class SettingsPage extends React.PureComponent<Props, State> {
|
||||||
this.onInstantPurchaseEnabledChange(true);
|
this.onInstantPurchaseEnabledChange(true);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<FormFieldPrice
|
{instantPurchaseEnabled && (
|
||||||
label={__('Confirmation price')}
|
<FormFieldPrice
|
||||||
disabled={!instantPurchaseEnabled}
|
label={__('Confirmation price')}
|
||||||
min={0.1}
|
min={0.1}
|
||||||
onChange={this.onInstantPurchaseMaxChange}
|
onChange={this.onInstantPurchaseMaxChange}
|
||||||
price={instantPurchaseMax}
|
price={instantPurchaseMax}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="card card--section">
|
<section className="card card--section">
|
||||||
<div className="card__title">{__('Content Settings')}</div>
|
<div className="card__title">{__('Content Settings')}</div>
|
||||||
<FormField
|
<FormField
|
||||||
|
@ -257,7 +256,6 @@ class SettingsPage extends React.PureComponent<Props, State> {
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="card card--section">
|
<section className="card card--section">
|
||||||
<div className="card__title">{__('Share Diagnostic Data')}</div>
|
<div className="card__title">{__('Share Diagnostic Data')}</div>
|
||||||
<div className="card__content">
|
<div className="card__content">
|
||||||
|
@ -275,7 +273,6 @@ class SettingsPage extends React.PureComponent<Props, State> {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{
|
{
|
||||||
// Hiding this for now until we update the dark mode styles
|
// Hiding this for now until we update the dark mode styles
|
||||||
// <section className="card card--section">
|
// <section className="card card--section">
|
||||||
|
@ -303,7 +300,6 @@ class SettingsPage extends React.PureComponent<Props, State> {
|
||||||
// />
|
// />
|
||||||
// </section>
|
// </section>
|
||||||
}
|
}
|
||||||
|
|
||||||
<section className="card card--section">
|
<section className="card card--section">
|
||||||
<div className="card__title">{__('Application Cache')}</div>
|
<div className="card__title">{__('Application Cache')}</div>
|
||||||
<span className="card__subtitle">
|
<span className="card__subtitle">
|
||||||
|
|
Loading…
Add table
Reference in a new issue