Better visibility in unchecked weight (#3404)
This commit is contained in:
parent
b47e032a6a
commit
4f2c85b58a
@ -44,28 +44,28 @@ function Sudo ({ className, isMine, sudoKey }: Props): React.ReactElement<Props>
|
||||
label={t<string>('submit the following change')}
|
||||
onChange={_onChangeExtrinsic}
|
||||
/>
|
||||
<br />
|
||||
{withWeight && (
|
||||
{api.tx.sudo.sudoUncheckedWeight && (
|
||||
<InputNumber
|
||||
help={t<string>('The unchecked weight as specified for the sudoUncheckedWeight call.')}
|
||||
isDisabled={!withWeight}
|
||||
isError={weight.eq(BN_ZERO)}
|
||||
isZeroable={false}
|
||||
label={t<string>('unchecked weight for this call')}
|
||||
onChange={_onChangeWeight}
|
||||
value={weight}
|
||||
/>
|
||||
)}
|
||||
{api.tx.sudo.sudoUncheckedWeight && (
|
||||
<Toggle
|
||||
className='sudoToggle'
|
||||
label={
|
||||
withWeight
|
||||
? t<string>('sudo with unchecked weight parameter')
|
||||
: t<string>('sudo without unchecked weight parameter')
|
||||
}
|
||||
onChange={toggleWithWeight}
|
||||
value={withWeight}
|
||||
/>
|
||||
>
|
||||
<Toggle
|
||||
className='sudoToggle'
|
||||
isOverlay
|
||||
label={
|
||||
withWeight
|
||||
? t<string>('with unchecked weight')
|
||||
: t<string>('without unchecked weight')
|
||||
}
|
||||
onChange={toggleWithWeight}
|
||||
value={withWeight}
|
||||
/>
|
||||
</InputNumber>
|
||||
)}
|
||||
<Button.Group>
|
||||
<TxButton
|
||||
|
||||
Loading…
Reference in New Issue
Block a user