From a6fbd0c60db065aea802ad68356aa022141506a5 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Thu, 16 Mar 2023 18:20:35 +0100 Subject: [PATCH] show invaders again during plotting --- pdb-js/src/app/plot-view/plot-view.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pdb-js/src/app/plot-view/plot-view.component.ts b/pdb-js/src/app/plot-view/plot-view.component.ts index 3998fe2..4028756 100644 --- a/pdb-js/src/app/plot-view/plot-view.component.ts +++ b/pdb-js/src/app/plot-view/plot-view.component.ts @@ -182,9 +182,7 @@ export class PlotViewComponent implements OnInit { const newDateRange = formattedStartDate+" - "+formattedEndDate; - //(document.getElementById("search-date-range")).value = newDateRange; this.dateRangeUpdateEvent.emit(newDateRange); - //this.plot(); } zoomRange(range: SelectionRange) { @@ -250,7 +248,11 @@ export class PlotViewComponent implements OnInit { this.axes = this.getAxes(); const request = this.createPlotRequest(dimension); + + this.imageUrl = ''; + this.stats = null; + document.dispatchEvent(new Event("invadersStart", {})); this.loadingEvent.emit(new LoadingEvent(true)); const x = this.service.sendPlotRequest(request).subscribe({ next: (plotResponse: PlotResponse) => {