Skip to content

Commit

Permalink
fix(*): minors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Aug 8, 2019
1 parent 7572d1b commit 141729c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { AppComponent } from './app.component';
RouteService,
provideNominatimSearchSource(),
provideIChercheSearchSource(),
provideIChercheReverseSearchSource(), // TODO: replace by territoire
provideIChercheReverseSearchSource(),
provideCoordinatesReverseSearchSource(),
provideILayerSearchSource(),
provideOsrmRoutingSource()
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/portal/toast-panel/toast-panel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ export class ToastPanelComponent {
}

swipe(action: string) {
if (action === ToastPanelComponent.SWIPE_ACTION.LEFT) {
if (action === ToastPanelComponent.SWIPE_ACTION.RIGHT) {
this.previousResult();
} else if (action === ToastPanelComponent.SWIPE_ACTION.RIGHT) {
} else if (action === ToastPanelComponent.SWIPE_ACTION.LEFT) {
this.nextResult();
} else if (action === ToastPanelComponent.SWIPE_ACTION.UP) {
this.opened = true;
Expand Down
12 changes: 9 additions & 3 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ export const environment: Environment = {
enabled: false
},
icherche: {
searchUrl: '/icherche/geocode'
searchUrl: '/apis/icherche/geocode',
params: {
limit: '8'
}
},
datasource: {
searchUrl: '/apis/layers/search'
ilayer: {
searchUrl: '/apis/layers/search',
params: {
limit: '5'
}
}
},
language: {
Expand Down
8 changes: 1 addition & 7 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,11 @@ export const environment: Environment = {
available: false
},
icherche: {
searchUrl: '/icherche/geocode',
searchUrl: '/apis/icherche/geocode',
params: {
limit: '8'
}
},
icherchereverse: {
searchUrl: '/icherche/xy',
params: {
limit: '5'
}
},
ilayer: {
searchUrl: '/apis/layers/search',
params: {
Expand Down

0 comments on commit 141729c

Please sign in to comment.