mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-08 07:01:04 +00:00
disabled sign and verify buttons when device is not connected
This commit is contained in:
parent
f60ddec70f
commit
b2a5d040b5
@ -140,6 +140,7 @@ class SignVerify extends Component<Props> {
|
|||||||
<FormattedMessage {...l10nCommonMessages.TR_CLEAR} />
|
<FormattedMessage {...l10nCommonMessages.TR_CLEAR} />
|
||||||
</StyledButton>
|
</StyledButton>
|
||||||
<StyledButton
|
<StyledButton
|
||||||
|
isDisabled={!device.connected}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
signVerifyActions.sign(account.accountPath, signMessage)
|
signVerifyActions.sign(account.accountPath, signMessage)
|
||||||
}
|
}
|
||||||
@ -194,7 +195,7 @@ class SignVerify extends Component<Props> {
|
|||||||
<FormattedMessage {...l10nCommonMessages.TR_CLEAR} />
|
<FormattedMessage {...l10nCommonMessages.TR_CLEAR} />
|
||||||
</StyledButton>
|
</StyledButton>
|
||||||
<StyledButton
|
<StyledButton
|
||||||
isDisabled={!!verifyAddressError}
|
isDisabled={!!verifyAddressError || !device.connected}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (errors.length <= 0) {
|
if (errors.length <= 0) {
|
||||||
signVerifyActions.verify(
|
signVerifyActions.verify(
|
||||||
|
Loading…
Reference in New Issue
Block a user