mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-24 15:00:58 +00:00
distinguish unreadable/unacquired device in dropdown menu
This commit is contained in:
parent
d9069b6824
commit
88208f3509
@ -176,9 +176,12 @@ export class DeviceDropdown extends Component<Props> {
|
||||
|
||||
let deviceStatus: string = 'Connected';
|
||||
let css: string = 'device item';
|
||||
if (!dev.features || (dev.features && dev.status === 'occupied')) {
|
||||
if (dev.type === 'unacquired' || (dev.features && dev.status === 'occupied')) {
|
||||
deviceStatus = 'Used in other window';
|
||||
css += ' unacquired';
|
||||
} else if (dev.type === 'unreadable') {
|
||||
deviceStatus = 'Connected';
|
||||
css += ' connected';
|
||||
} else if (!dev.connected) {
|
||||
deviceStatus = 'Disconnected';
|
||||
css += ' disconnected';
|
||||
|
Loading…
Reference in New Issue
Block a user