Restore device icons [3/n]

Summary: Restored support for device icons which was disabled in previous diff

Reviewed By: passy

Differential Revision: D31054802

fbshipit-source-id: 107a53f06159211534cb9a2316340af7a7ca530a
This commit is contained in:
Michel Weststrate
2021-09-22 09:01:29 -07:00
committed by Facebook GitHub Bot
parent 2d838efd4d
commit 3428ce2968
7 changed files with 15 additions and 7 deletions

View File

@@ -44,9 +44,9 @@ export default class ArchivedDevice extends BaseDevice {
title: options.title,
os: options.os,
serial: options.serial,
icon: 'box',
},
);
this.icon = 'box';
this.connected.set(false);
this.source = options.source || '';
this.supportRequestDetails = options.supportRequestDetails;

View File

@@ -79,7 +79,9 @@ export default class BaseDevice {
}
// possible src of icon to display next to the device title
icon: string | null | undefined;
get icon() {
return this.description.icon;
}
logListeners: Map<Symbol, DeviceLogListener> = new Map();