Skip to content

Commit

Permalink
fix(export): URL translation and layer remove from map (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeLafreniere18 authored Aug 3, 2020
1 parent 87eed27 commit 764c70b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h4>{{'igo.geo.importExportForm.exportNoLayersExportable' | translate}}</h4>
<button
mat-raised-button
type="button"
[disabled]="!form.valid || (loading$ | async)"
[disabled]="!form.valid || (loading$ | async) || !map.getLayerById(form.get('layer').value)"
(click)="handleExportFormSubmit(form.value)">
{{form.value.format !== 'URL' ? ('igo.geo.importExportForm.exportButton' | translate): ('igo.geo.importExportForm.exportButtonLink' | translate)}}
</button>
Expand Down
3 changes: 2 additions & 1 deletion packages/geo/src/locale/en.geo.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
"KML": "KML",
"Shapefile": "Shapefile",
"CSVcomma": "CSV (comma delimited)",
"CSVsemicolon": "CSV (semicolon delimited)"
"CSVsemicolon": "CSV (semicolon delimited)",
"URL": "URL"
}
},
"importExportForm": {
Expand Down
3 changes: 2 additions & 1 deletion packages/geo/src/locale/fr.geo.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
"KML": "KML",
"Shapefile": "Shapefile",
"CSVcomma": "CSV (séparateur virgule)",
"CSVsemicolon": "CSV (séparateur point-virgule)"
"CSVsemicolon": "CSV (séparateur point-virgule)",
"URL": "URL"
}
},
"importExportForm": {
Expand Down

0 comments on commit 764c70b

Please sign in to comment.