1
0
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:
Szymon Lesisz 2018-08-08 15:29:33 +02:00
parent d9069b6824
commit 88208f3509

View File

@ -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';