Skip to content

Commit

Permalink
Working - Needs Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
artisticlight committed Sep 6, 2024
1 parent 5dfd2b9 commit 4b7ab49
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,23 +105,17 @@ 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;
// }
}
)
);

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) {
Expand All @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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]);
Expand Down

0 comments on commit 4b7ab49

Please sign in to comment.