Make sure upload traces responds to changes in tracePipeline

Otherwise clearing or removing loaded traces has no effect on the UI.

Test: load traces in winscope, delete some, clear all and make sure UI responds to those changes
Fixes: 283976269
Change-Id: I7eb981367191a47d3b50b31ee68492809275833a
This commit is contained in:
Pablo Gamito
2023-05-24 10:42:16 +00:00
parent 9b0562b4d7
commit 8ee2c132b6

View File

@@ -46,6 +46,7 @@ import {LoadProgressComponent} from './load_progress_component';
hidden
type="file"
multiple
onclick="this.value = null"
#fileDropRef
(change)="onInputFiles($event)" />
@@ -216,6 +217,7 @@ export class UploadTracesComponent implements ProgressListener {
onClearButtonClick() {
this.tracePipeline.clear();
this.onOperationFinished();
}
onFileDragIn(e: DragEvent) {
@@ -240,6 +242,7 @@ export class UploadTracesComponent implements ProgressListener {
event.preventDefault();
event.stopPropagation();
this.tracePipeline.removeTraceFile(trace.type);
this.onOperationFinished();
}
private getInputFiles(event: Event): File[] {