From 999587ea2f8e971d49b241db0720fd4be3d8ceac Mon Sep 17 00:00:00 2001 From: skubakdj Date: Wed, 27 Dec 2017 14:48:14 -0500 Subject: [PATCH] Disable Trezor in Sign & Verify Message Tab (#673) --- common/components/WalletDecrypt/index.tsx | 11 ++++++++++- .../components/SignMessage/index.tsx | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/common/components/WalletDecrypt/index.tsx b/common/components/WalletDecrypt/index.tsx index 0918a3da..4fc2fab2 100644 --- a/common/components/WalletDecrypt/index.tsx +++ b/common/components/WalletDecrypt/index.tsx @@ -45,6 +45,7 @@ interface Props { hidden?: boolean; offline: boolean; allowReadOnly?: boolean; + disabledWallets?: string[]; } interface State { @@ -139,7 +140,8 @@ export class WalletDecrypt extends Component { const isSelected = this.state.selectedWalletKey === key; const isDisabled = this.isOnlineRequiredWalletAndOffline(key) || - (!this.props.allowReadOnly && wallet.component === ViewOnlyDecrypt); + (!this.props.allowReadOnly && wallet.component === ViewOnlyDecrypt) || + this.isWalletDisabled(key); return (