show invaders again during plotting

This commit is contained in:
2023-03-16 18:20:35 +01:00
parent 2b82a6822c
commit a6fbd0c60d

View File

@@ -182,9 +182,7 @@ export class PlotViewComponent implements OnInit {
const newDateRange = formattedStartDate+" - "+formattedEndDate; const newDateRange = formattedStartDate+" - "+formattedEndDate;
//(<HTMLInputElement>document.getElementById("search-date-range")).value = newDateRange;
this.dateRangeUpdateEvent.emit(newDateRange); this.dateRangeUpdateEvent.emit(newDateRange);
//this.plot();
} }
zoomRange(range: SelectionRange) { zoomRange(range: SelectionRange) {
@@ -251,6 +249,10 @@ export class PlotViewComponent implements OnInit {
const request = this.createPlotRequest(dimension); const request = this.createPlotRequest(dimension);
this.imageUrl = '';
this.stats = null;
document.dispatchEvent(new Event("invadersStart", {}));
this.loadingEvent.emit(new LoadingEvent(true)); this.loadingEvent.emit(new LoadingEvent(true));
const x = this.service.sendPlotRequest(request).subscribe({ const x = this.service.sendPlotRequest(request).subscribe({
next: (plotResponse: PlotResponse) => { next: (plotResponse: PlotResponse) => {