Skip to content

Commit

Permalink
Update ledger message/action if transport creation was blocked by exi…
Browse files Browse the repository at this point in the history
…sting connection
  • Loading branch information
danjm committed Nov 2, 2021
1 parent 4d04e74 commit 4a0d6bf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1258,8 +1258,8 @@
"ledgerAccountRestriction": {
"message": "You need to make use your last account before you can add a new one."
},
"ledgerConnectionInstructionCloseLedgerBridge": {
"message": "Make sure other software connected to your device are closed."
"ledgerConnectionInstructionCloseOtherApps": {
"message": "Close any other software connected to your device and then click here to refresh."
},
"ledgerConnectionInstructionHeader": {
"message": "Prior to clicking confirm:"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,20 @@ export default function LedgerInstructionField({ showDataInstruction }) {
showDataInstruction,
)}
{renderInstructionStep(
`- ${t('ledgerConnectionInstructionCloseLedgerBridge')}`,
<span>
<Button
type="link"
onClick={async () => {
if (environmentTypeIsFullScreen) {
window.location.reload();
} else {
global.platform.openExtensionInBrowser(null, null, true);
}
}}
>
{t('ledgerConnectionInstructionCloseOtherApps')}
</Button>
</span>,
transportStatus === TRANSPORT_STATES.DEVICE_OPEN_FAILURE,
)}
{renderInstructionStep(
Expand Down

0 comments on commit 4a0d6bf

Please sign in to comment.