Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use correct icon for layer download advanced action #2224

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

yohanboniface
Copy link
Member

Replace #2221

@yohanboniface yohanboniface merged commit e100809 into master Oct 21, 2024
4 checks passed
@yohanboniface yohanboniface deleted the fix-layer-download-button branch October 21, 2024 10:15
this._dataUrl(),
'_blank'
)
const filename = Utils.slugify(this.options.name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably miss an extension?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meeh, good point!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

humm, actually, the downloaded file does have an extension. I guess because we are calling the back office, which set one. So does the download attribute still make sense ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's not the backend that sets this extension. Can it be firefox adding it, as the backend sets the content-type to `application/geo+json ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the content of this.options.name at this point?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name of the layer ;)

image

yohanboniface added a commit that referenced this pull request Oct 24, 2024
)

This was added by the browser I think, but let's be explicit, just in
case.

cf
#2224 (review)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants