Disable MinSuper if MinTip is set.
This commit is contained in:
parent
0ebb9420ef
commit
926de0959e
1 changed files with 13 additions and 3 deletions
|
@ -344,15 +344,25 @@ export default function SettingsCreatorPage(props: Props) {
|
||||||
label={
|
label={
|
||||||
<I18nMessage tokens={{ lbc: <LbcSymbol /> }}>Minimum %lbc% tip amount for hyperchats</I18nMessage>
|
<I18nMessage tokens={{ lbc: <LbcSymbol /> }}>Minimum %lbc% tip amount for hyperchats</I18nMessage>
|
||||||
}
|
}
|
||||||
helper={__(
|
helper={
|
||||||
'Enabling a minimum amount to hyperchat will force all TIPPED comments to have this value in order to be shown. This still allows regular comments to be posted.'
|
<>
|
||||||
)}
|
{__(
|
||||||
|
'Enabling a minimum amount to hyperchat will force all TIPPED comments to have this value in order to be shown. This still allows regular comments to be posted.'
|
||||||
|
)}
|
||||||
|
{minTipAmountComment !== 0 && (
|
||||||
|
<p className="help--inline">
|
||||||
|
<em>{__('(This settings is not applicable if all comments require a tip.)')}</em>
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
|
}
|
||||||
className="form-field--price-amount"
|
className="form-field--price-amount"
|
||||||
min={0}
|
min={0}
|
||||||
step="any"
|
step="any"
|
||||||
type="number"
|
type="number"
|
||||||
placeholder="1"
|
placeholder="1"
|
||||||
value={minTipAmountSuperChat}
|
value={minTipAmountSuperChat}
|
||||||
|
disabled={minTipAmountComment !== 0}
|
||||||
onChange={(e) => setSettings({ min_tip_amount_super_chat: parseFloat(e.target.value) })}
|
onChange={(e) => setSettings({ min_tip_amount_super_chat: parseFloat(e.target.value) })}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
|
Loading…
Add table
Reference in a new issue