1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-27 18:58:08 +00:00

removed CONNECT.SELECT_DEVICE

This commit is contained in:
Szymon Lesisz 2018-05-23 10:08:32 +02:00
parent 6de33d5691
commit 6bc7a2a0f2
4 changed files with 0 additions and 19 deletions

View File

@ -37,12 +37,6 @@ import type {
export type TrezorConnectAction = {
type: typeof CONNECT.INITIALIZATION_ERROR,
error: string
} | {
type: typeof CONNECT.SELECT_DEVICE,
payload: ?{
id: string,
instance: ?number
}
} | {
type: typeof CONNECT.COIN_CHANGED,
payload: {

View File

@ -6,7 +6,6 @@
export const READY: 'connect__ready' = 'connect__ready';
export const INITIALIZATION_ERROR: 'connect__init_error' = 'connect__init_error';
export const SELECT_DEVICE: 'connect__select_device' = 'connect__select_device';
export const DEVICE_FROM_STORAGE: 'connect__device_from_storage' = 'connect__device_from_storage';

View File

@ -130,7 +130,6 @@ const LocalStorageService: Middleware = (api: MiddlewareAPI) => (next: Middlewar
case DEVICE.CHANGED :
case DEVICE.DISCONNECT :
case CONNECT.AUTH_DEVICE :
case CONNECT.SELECT_DEVICE :
save(api.dispatch, api.getState);
break;

View File

@ -131,17 +131,6 @@ const RouterService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispa
// redirectPath = `/device/${ devices[0].path }`;
redirectPath = location.pathname;
} else if (requestedParams.device) {
if (currentParams.device !== requestedParams.device || currentParams.deviceInstance !== requestedParams.deviceInstance) {
postActions.push({
type: CONNECT.SELECT_DEVICE,
payload: {
id: requestedParams.device,
instance: requestedParams.deviceInstance ? parseInt(requestedParams.deviceInstance) : undefined
}
});
}
if (requestedParams.network !== currentParams.network) {
postActions.push({
type: CONNECT.COIN_CHANGED,