Skip to content

Commit

Permalink
refactor(*): delete pointersummary mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
pelord committed Jan 25, 2024
1 parent 7e85fdc commit 4849bcd
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
[termSplitter]="termSplitter"
[forceNA]="forceCoordsNA"
[store]="searchStore"
[pointerSummaryEnabled]="igoSearchPointerSummaryEnabled"
(pointerSummaryStatus)="onPointerSummaryStatusChange($event)"
[searchResultsGeometryEnabled]="searchResultsGeometryEnabled"
(searchResultsGeometryStatus)="onSearchResultsGeometryStatusChange($event)"
(clearFeature)="clearSearchBar($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ export class BottomPanelComponent implements OnInit, OnDestroy {

public store = new ActionStore([]);
public showSearchBar: boolean;
public igoSearchPointerSummaryEnabled: boolean = false;
get termSplitter(): string {
get termSplitter(): string {
return this.searchState.searchTermSplitter$.value;
}
public forceCoordsNA: boolean = false;
Expand Down Expand Up @@ -254,10 +253,6 @@ export class BottomPanelComponent implements OnInit, OnDestroy {
this.clearSearch();
}

onPointerSummaryStatusChange(value) {
this.igoSearchPointerSummaryEnabled = value;
}

onSearchTermChange(term = '') {
this.term = term;
this.clearedSearchbar = false;
Expand Down
1 change: 0 additions & 1 deletion src/app/pages/portal/portal.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

<igo-search-bar *ngIf="showSearchBar"
#searchbar
(pointerSummaryStatus)="onPointerSummaryStatusChange($event)"
appearance="outline"
searchIcon ="magnify"
[matTooltip]="'searchBar' | translate"
Expand Down
6 changes: 0 additions & 6 deletions src/app/pages/portal/portal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ export class PortalComponent implements OnInit, AfterContentInit, OnDestroy {
private context$$: Subscription;
private searchTerm$$: Subscription;

public igoSearchPointerSummaryEnabled: boolean;

private routeParams: Params;
public toastPanelHtmlDisplay = false;
Expand Down Expand Up @@ -742,11 +741,6 @@ export class PortalComponent implements OnInit, AfterContentInit, OnDestroy {
this.searchBarTerm = coord.map((c) => c.toFixed(6)).join(', ');
}

onPointerSummaryStatusChange(value) {
this.storageService.set('searchPointerSummaryEnabled', value);
this.igoSearchPointerSummaryEnabled = value;
}

private readQueryParams() {
this.route.queryParams.subscribe((params) => {
this.routeParams = params;
Expand Down
5 changes: 1 addition & 4 deletions src/environments/environment.github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,11 @@ export const environment: Environment = {
params: {
limit: '5'
},
settings:[],
showInPointerSummary: true
settings: [],
},
coordinatesreverse: {
showInPointerSummary: true
},
icherchereverse: {
showInPointerSummary: true,
searchUrl: 'https://geoegl.msp.gouv.qc.ca/apis/terrapi',
order: 3,
enabled: true
Expand Down
8 changes: 4 additions & 4 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ export const environment: Environment = {
params: {
limit: '5'
},
settings:[],
showInPointerSummary: true
settings: []

},
coordinatesreverse: {
showInPointerSummary: true

},
icherchereverse: {
showInPointerSummary: true,

searchUrl: '/apis/terrapi',
order: 3,
enabled: true
Expand Down
5 changes: 1 addition & 4 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,11 @@ export const environment: Environment = {
params: {
limit: '5'
},
settings:[],
showInPointerSummary: true
settings: []
},
coordinatesreverse: {
showInPointerSummary: true
},
icherchereverse: {
showInPointerSummary: true,
searchUrl: '/apis/terrapi',
order: 3,
enabled: true
Expand Down

0 comments on commit 4849bcd

Please sign in to comment.