Skip to content

Commit

Permalink
Only show selected pre-solve shipments and vehicles
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccollum-woolpert committed May 23, 2024
1 parent d3771e0 commit 3d7a128
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const selectFilteredVisitRequestsTurfPoints = createSelector(
);

export const selectMouseOverVisitRequest = createSelector(
PreSolveShipmentSelectors.selectFilteredVisitRequests,
PreSolveShipmentSelectors.selectFilteredVisitRequestsSelected,
PreSolveShipmentSelectors.selectSelectedLookup,
PreSolveShipmentSelectors.selectSelectedColors,
selectMouseOverId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ import { Injectable, NgZone } from '@angular/core';
import { State } from 'src/app/reducers';
import { select, Store } from '@ngrx/store';
import { MapService } from './map.service';
import {
selectFilteredVehicles,
selectFilteredVehiclesSelected,
} from '../selectors/pre-solve-vehicle-layer.selectors';
import { selectFilteredVehiclesSelected } from '../selectors/pre-solve-vehicle-layer.selectors';
import { BaseVehicleLayer } from './base-vehicle-layer.service';

@Injectable({
Expand All @@ -30,9 +27,6 @@ import { BaseVehicleLayer } from './base-vehicle-layer.service';
export class PreSolveVehicleLayer extends BaseVehicleLayer {
constructor(mapService: MapService, store: Store<State>, zone: NgZone) {
super(mapService, store, zone);
this.store.pipe(select(selectFilteredVehicles)).subscribe((vehicles) => {
this.onDataFiltered(vehicles);
});

this.store.pipe(select(selectFilteredVehiclesSelected)).subscribe((vehicles) => {
this.onDataSelected(vehicles);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { select, Store } from '@ngrx/store';
import { State } from 'src/app/reducers';
import { BaseVisitRequestLayer as BaseVisitRequestLayer } from './base-visit-request-layer.service';
import {
selectFilteredVisitRequests,
selectFilteredVisitRequestsSelected,
selectMouseOverVisitRequest,
} from '../selectors/pre-solve-visit-request-layer.selectors';
Expand All @@ -31,9 +30,6 @@ import {
export class PreSolveVisitRequestLayer extends BaseVisitRequestLayer {
constructor(mapService: MapService, store: Store<State>, zone: NgZone) {
super(mapService, store, zone);
this.store.pipe(select(selectFilteredVisitRequests)).subscribe((visitRequests) => {
this.onDataFiltered(visitRequests);
});

this.store.pipe(select(selectFilteredVisitRequestsSelected)).subscribe((visitRequests) => {
this.onDataSelected(visitRequests);
Expand Down

0 comments on commit 3d7a128

Please sign in to comment.