@@ -96,8 +97,8 @@ interface Tab extends View {
export class TraceViewComponent {
@Input() viewers!: Viewer[];
@Input() store!: PersistentStore;
- @Output() onDownloadTracesButtonClick = new EventEmitter
();
- @Output() onActiveViewChanged = new EventEmitter();
+ @Output() downloadTracesButtonClick = new EventEmitter();
+ @Output() activeViewChanged = new EventEmitter();
private elementRef: ElementRef;
@@ -184,7 +185,7 @@ export class TraceViewComponent {
}
this.currentActiveTab = tab;
- this.onActiveViewChanged.emit(tab);
+ this.activeViewChanged.emit(tab);
}
public isCurrentActiveTab(tab: Tab) {
diff --git a/tools/winscope-ng/src/app/components/upload_traces.component.ts b/tools/winscope-ng/src/app/components/upload_traces.component.ts
index 55e195dc2..3998b17c1 100644
--- a/tools/winscope-ng/src/app/components/upload_traces.component.ts
+++ b/tools/winscope-ng/src/app/components/upload_traces.component.ts
@@ -26,8 +26,8 @@ import {MatSnackBar} from "@angular/material/snack-bar";
import {UploadTracesComponentDependencyInversion} from "./upload_traces_component_dependency_inversion";
import {TraceData} from "app/trace_data";
import {TRACE_INFO} from "app/trace_info";
-import {Trace} from "common/trace/trace";
-import {FileUtils} from "common/utils/file_utils";
+import {Trace, TraceFile} from "common/trace/trace";
+import {FileUtils, OnFile} from "common/utils/file_utils";
import {ParserErrorSnackBarComponent} from "./parser_error_snack_bar_component";
@Component({
@@ -67,7 +67,7 @@ import {ParserErrorSnackBarComponent} from "./parser_error_snack_bar_component";
- {{trace.file.name}} ({{TRACE_INFO[trace.type].name}})
+ {{trace.traceFile.file.name}} ({{TRACE_INFO[trace.type].name}})