From 4b7ab49c7b1147076e01bd441a5970af413fb3f1 Mon Sep 17 00:00:00 2001 From: Andrew Anderson Date: Fri, 6 Sep 2024 12:31:48 -0700 Subject: [PATCH] Working - Needs Testing --- .../sbas-sliders-two/sbas-sliders-two.component.ts | 9 +-------- .../sbas-sliders/sbas-sliders.component.ts | 2 -- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/app/components/results-menu/sbas-results-menu/sbas-sliders-two/sbas-sliders-two.component.ts b/src/app/components/results-menu/sbas-results-menu/sbas-sliders-two/sbas-sliders-two.component.ts index 9bed02e35..ad027bc79 100644 --- a/src/app/components/results-menu/sbas-results-menu/sbas-sliders-two/sbas-sliders-two.component.ts +++ b/src/app/components/results-menu/sbas-results-menu/sbas-sliders-two/sbas-sliders-two.component.ts @@ -105,15 +105,10 @@ export class SbasSlidersTwoComponent implements OnInit { this.subs.add( this.store$.select(filtersStore.getTemporalRange).subscribe( temp => { - if (this.firstMeterLoad){ + if (this.daysRange.start !== temp.start || this.daysRange.end !== temp.end) { this.daysRange = {start: temp.start, end: temp.end}; this.slider.set([temp.start, temp.end]); - this.firstMeterLoad = false; } - // if (this.firstLoad) { - // this.slider.set([temp.start, temp.end]); - // this.firstLoad = false; - // } } ) ); @@ -121,7 +116,6 @@ export class SbasSlidersTwoComponent implements OnInit { this.subs.add( this.store$.select(filtersStore.getPerpendicularRange).subscribe( perp => { - console.log('perp in getPerpendicularRange:', perp); this.perpendicular = perp; this.options.controls.meterDistance.setValue(this.perpendicular); if (this.firstMeterLoad) { @@ -138,7 +132,6 @@ export class SbasSlidersTwoComponent implements OnInit { this.subs.add( this.metersValues$.subscribe( ([start, end]) => { - console.log('start and end in metersValues$:', start, end); const action = new filtersStore.SetPerpendicularRange({ start, end }); this.store$.dispatch(action); } diff --git a/src/app/components/results-menu/sbas-results-menu/sbas-sliders/sbas-sliders.component.ts b/src/app/components/results-menu/sbas-results-menu/sbas-sliders/sbas-sliders.component.ts index 02a8547d5..962ed4d1b 100644 --- a/src/app/components/results-menu/sbas-results-menu/sbas-sliders/sbas-sliders.component.ts +++ b/src/app/components/results-menu/sbas-results-menu/sbas-sliders/sbas-sliders.component.ts @@ -47,7 +47,6 @@ export class SbasSlidersComponent implements OnInit { if (start === this.perpRange.start && end === this.perpRange.end) { return; } - console.log('baselineSlider.values$ subscription start, end:', start, end); const action = new filtersStore.SetPerpendicularRange({ start, end }); this.store$.dispatch(action); } @@ -57,7 +56,6 @@ export class SbasSlidersComponent implements OnInit { this.subs.add( this.store$.select(filtersStore.getPerpendicularRange).subscribe( perp => { - console.log('getPerpendicularRange subscription perp:', perp); this.perpRange = perp; if (this.lastRange !== this.perpRange) { this.perpendicularSlider.set([perp.start, perp.end]);