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:
@@ -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[] {
|
||||
|
||||
Reference in New Issue
Block a user