|
|
@ -7,6 +7,7 @@ import TextField from '../../../components/ui/text-field'; |
|
|
|
import Button from '../../../components/ui/button'; |
|
|
|
import Button from '../../../components/ui/button'; |
|
|
|
import { MOBILE_SYNC_ROUTE } from '../../../helpers/constants/routes'; |
|
|
|
import { MOBILE_SYNC_ROUTE } from '../../../helpers/constants/routes'; |
|
|
|
import Dropdown from '../../../components/ui/dropdown'; |
|
|
|
import Dropdown from '../../../components/ui/dropdown'; |
|
|
|
|
|
|
|
import Dialog from '../../../components/ui/dialog'; |
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
import { |
|
|
|
LEDGER_TRANSPORT_TYPES, |
|
|
|
LEDGER_TRANSPORT_TYPES, |
|
|
@ -53,6 +54,7 @@ export default class AdvancedTab extends PureComponent { |
|
|
|
lockTimeError: '', |
|
|
|
lockTimeError: '', |
|
|
|
ipfsGateway: this.props.ipfsGateway, |
|
|
|
ipfsGateway: this.props.ipfsGateway, |
|
|
|
ipfsGatewayError: '', |
|
|
|
ipfsGatewayError: '', |
|
|
|
|
|
|
|
showLedgerTransportWarning: false, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
renderMobileSync() { |
|
|
|
renderMobileSync() { |
|
|
@ -489,6 +491,12 @@ export default class AdvancedTab extends PureComponent { |
|
|
|
options={transportTypeOptions} |
|
|
|
options={transportTypeOptions} |
|
|
|
selectedOption={ledgerTransportType} |
|
|
|
selectedOption={ledgerTransportType} |
|
|
|
onChange={async (transportType) => { |
|
|
|
onChange={async (transportType) => { |
|
|
|
|
|
|
|
if ( |
|
|
|
|
|
|
|
ledgerTransportType === LEDGER_TRANSPORT_TYPES.LIVE && |
|
|
|
|
|
|
|
transportType === LEDGER_TRANSPORT_TYPES.WEBHID |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
this.setState({ showLedgerTransportWarning: true }); |
|
|
|
|
|
|
|
} |
|
|
|
setLedgerLivePreference(transportType); |
|
|
|
setLedgerLivePreference(transportType); |
|
|
|
if ( |
|
|
|
if ( |
|
|
|
transportType === LEDGER_TRANSPORT_TYPES.WEBHID && |
|
|
|
transportType === LEDGER_TRANSPORT_TYPES.WEBHID && |
|
|
@ -500,6 +508,13 @@ export default class AdvancedTab extends PureComponent { |
|
|
|
} |
|
|
|
} |
|
|
|
}} |
|
|
|
}} |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
{this.state.showLedgerTransportWarning ? ( |
|
|
|
|
|
|
|
<Dialog type="message"> |
|
|
|
|
|
|
|
<div className="settings-page__content-item-dialog"> |
|
|
|
|
|
|
|
{t('ledgerTransportChangeWarning')} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</Dialog> |
|
|
|
|
|
|
|
) : null} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|