Browse Source
Merge pull request #1028 from gre/fix-message-app-to-install
Fixes #948 cur.managerAppName for better precision in app to install
master
Gaëtan Renaudeau
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with
10 additions and
14 deletions
-
src/components/AccountPage/EmptyStateAccount.js
-
src/components/EnsureDeviceApp.js
-
src/helpers/getAddressForCurrency/btc.js
-
static/i18n/en/app.yml
-
static/i18n/en/errors.yml
-
yarn.lock
|
|
@ -45,7 +45,7 @@ class EmptyStateAccount extends PureComponent<Props, *> { |
|
|
|
<Trans i18nKey="app:account.emptyState.desc"> |
|
|
|
{'Make sure the'} |
|
|
|
<Text ff="Open Sans|SemiBold" color="dark"> |
|
|
|
{account.currency.name} |
|
|
|
{account.currency.managerAppName} |
|
|
|
</Text> |
|
|
|
{'app is installed to receive funds.'} |
|
|
|
</Trans> |
|
|
|
|
|
@ -24,7 +24,6 @@ import type { Device } from 'types/common' |
|
|
|
import { createCustomErrorClass } from 'helpers/errors' |
|
|
|
import { getCurrentDevice } from 'reducers/devices' |
|
|
|
|
|
|
|
export const WrongAppOpened = createCustomErrorClass('WrongAppOpened') |
|
|
|
export const WrongDeviceForAccount = createCustomErrorClass('WrongDeviceForAccount') |
|
|
|
|
|
|
|
const usbIcon = <IconUsb size={16} /> |
|
|
@ -77,9 +76,9 @@ class EnsureDeviceApp extends Component<{ |
|
|
|
const cur = account ? account.currency : currency |
|
|
|
invariant(cur, 'No currency given') |
|
|
|
return ( |
|
|
|
<Trans i18nKey="deviceConnect:step2.open" parent="div"> |
|
|
|
<Trans i18nKey="app:deviceConnect.step2.open" parent="div"> |
|
|
|
{'Open the '} |
|
|
|
<Bold>{cur.name}</Bold> |
|
|
|
<Bold>{cur.managerAppName}</Bold> |
|
|
|
{' app on your device'} |
|
|
|
</Trans> |
|
|
|
) |
|
|
|
|
|
@ -27,9 +27,7 @@ export default async ( |
|
|
|
if (bitcoinLikeInfo) { |
|
|
|
const { P2SH, P2PKH } = await getBitcoinLikeInfo(transport) |
|
|
|
if (P2SH !== bitcoinLikeInfo.P2SH || P2PKH !== bitcoinLikeInfo.P2PKH) { |
|
|
|
throw new BtcUnmatchedApp(`BtcUnmatchedApp ${currency.id}`, { |
|
|
|
currencyName: currency.name, |
|
|
|
}) |
|
|
|
throw new BtcUnmatchedApp(`BtcUnmatchedApp ${currency.id}`, currency) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -89,7 +89,7 @@ account: |
|
|
|
lastOperations: Last operations |
|
|
|
emptyState: |
|
|
|
title: No crypto assets yet? |
|
|
|
desc: Make sure the <1><0>{{currency}}</0></1> app is installed and start receiving |
|
|
|
desc: Make sure the <1><0>{{managerAppName}}</0></1> app is installed and start receiving |
|
|
|
buttons: |
|
|
|
receiveFunds: Receive |
|
|
|
settings: |
|
|
@ -136,6 +136,8 @@ deviceConnect: |
|
|
|
choose: "We detected {{count}} connected devices, please select one:" |
|
|
|
connect: Connect and unlock your <1>Ledger device</1> # remove key: <3>PIN code</3> |
|
|
|
dashboard: Not used. # This key is not used. Still managed in JS. |
|
|
|
step2: |
|
|
|
open: 'Open the <1><0>{{managerAppName}}</0></1> app on your device' |
|
|
|
emptyState: |
|
|
|
sidebar: |
|
|
|
text: Press this button to add accounts to your portfolio |
|
|
|
|
|
@ -6,7 +6,7 @@ generic: |
|
|
|
# the error codes are alphabetically sorted |
|
|
|
BtcUnmatchedApp: |
|
|
|
title: That's the wrong app |
|
|
|
description: Open the ‘{{currencyName}}’ app on your device |
|
|
|
description: Open the ‘{{managerAppName}}’ app on your device |
|
|
|
DeviceNotGenuine: |
|
|
|
title: Possibly not genuine |
|
|
|
description: 'Request Ledger Support assistance.' |
|
|
@ -94,9 +94,6 @@ WebsocketConnectionError: |
|
|
|
WebsocketConnectionFailed: |
|
|
|
title: Sorry, try again (websocket failed). |
|
|
|
description: |
|
|
|
WrongAppOpened: |
|
|
|
title: Please open the ‘{{currencyName}}’ app |
|
|
|
description: The wrong app was opened on your device. Please retry. |
|
|
|
WrongDeviceForAccount: |
|
|
|
title: Oops, wrong device for ‘{{accountName}}’. |
|
|
|
description: The connected device is not associated with the account you selected. Please connect the right device. |
|
|
|
|
|
@ -1535,8 +1535,8 @@ |
|
|
|
prebuild-install "^2.2.2" |
|
|
|
|
|
|
|
"@ledgerhq/live-common@^2.32.0": |
|
|
|
version "2.33.0" |
|
|
|
resolved "https://registry.yarnpkg.com/@ledgerhq/live-common/-/live-common-2.33.0.tgz#07ea0244c6afb7892cf04b466ae23807aad8b509" |
|
|
|
version "2.34.0" |
|
|
|
resolved "https://registry.yarnpkg.com/@ledgerhq/live-common/-/live-common-2.34.0.tgz#436ec0816c37f6aabcbca807090f152f1bd3b785" |
|
|
|
dependencies: |
|
|
|
axios "^0.18.0" |
|
|
|
invariant "^2.2.2" |
|
|
|