feat: disable transaction batching editing unless it's BTC
This commit is contained in:
parent
68d9d95dfa
commit
c7a9cef998
1 changed files with 7 additions and 3 deletions
|
|
@ -76,9 +76,13 @@ const getAdvancedWalletElements = (cryptoCurrencies, coinUtils, config) => {
|
|||
size: 'sm',
|
||||
stripe: true,
|
||||
width: 250,
|
||||
view: (_, ite) =>
|
||||
config[`${ite.id}_allowTransactionBatching`] ? 'Yes' : 'No',
|
||||
input: Checkbox
|
||||
view: (_, ite) => {
|
||||
if (ite.id !== 'BTC')
|
||||
return <span style={classes.editDisabled}>{`No`}</span>
|
||||
return config[`${ite.id}_allowTransactionBatching`] ? 'Yes' : 'No'
|
||||
},
|
||||
input: Checkbox,
|
||||
editable: it => it.id === 'BTC'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue