Skip to content

Commit

Permalink
fix: use correct icon for layer download advanced action
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanboniface committed Oct 18, 2024
1 parent 0b23f1a commit 4640e94
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions umap/static/umap/img/24-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions umap/static/umap/img/24.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions umap/static/umap/img/source/24-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions umap/static/umap/img/source/24.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 5 additions & 7 deletions umap/static/umap/js/modules/data/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -802,13 +802,11 @@ export class DataLayer {
this
)
if (this.umap_id) {
const download = DomUtil.createLink(
'button umap-download',
advancedButtons,
translate('Download'),
this._dataUrl(),
'_blank'
)
const download = Utils.loadTemplate(`
<a class="button" href="${this._dataUrl()}" target="_blank">
<i class="icon icon-24 icon-download"></i>${translate('Download')}
</button>`)
advancedButtons.appendChild(download)
}
const backButton = DomUtil.createButtonIcon(
undefined,
Expand Down

0 comments on commit 4640e94

Please sign in to comment.