Introduce support request details form
Summary: Initial setup for a support detail form. Will only show up if meta data is present in the flipper file, so use the attached one to see it. Reviewed By: jknoxville Differential Revision: D18479193 fbshipit-source-id: 61da089f1e883fea20b2422a6bea99b2f8a4434b
This commit is contained in:
committed by
Facebook Github Bot
parent
a578b4d559
commit
d2ab55a6f8
@@ -9,6 +9,7 @@
|
||||
|
||||
import BaseDevice from './BaseDevice';
|
||||
import {DeviceType, OS, DeviceShell, DeviceLogEntry} from './BaseDevice';
|
||||
import {SupportRequestDetailsMetaData} from '../utils/exportData';
|
||||
|
||||
function normalizeArchivedDeviceType(deviceType: DeviceType): DeviceType {
|
||||
let archivedDeviceType = deviceType;
|
||||
@@ -28,16 +29,20 @@ export default class ArchivedDevice extends BaseDevice {
|
||||
os: OS,
|
||||
logEntries: Array<DeviceLogEntry>,
|
||||
source: string = '',
|
||||
supportRequestDetails?: SupportRequestDetailsMetaData,
|
||||
) {
|
||||
super(serial, normalizeArchivedDeviceType(deviceType), title, os);
|
||||
this.logs = logEntries;
|
||||
this.source = source;
|
||||
this.supportRequestDetails = supportRequestDetails;
|
||||
}
|
||||
|
||||
logs: Array<DeviceLogEntry>;
|
||||
|
||||
isArchived = true;
|
||||
|
||||
supportRequestDetails?: SupportRequestDetailsMetaData;
|
||||
|
||||
getLogs() {
|
||||
return this.logs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user