<p dir="auto">Once a user clicks on "Download" Image, there's currently no visual feedback that anything happens. Since the image generation may take a few seconds, a user may be tempted to hit the download button multiple times.</p>
<p dir="auto">This PR disables the button as soon as a hits the download button, similar to the Export Map function. This way, we're improving UI consistency across different export functions.</p>
<p dir="auto">I'm still looking for ideas on how / when to re-enable the button...</p>
<a href="https://github.com/user-attachments/assets/b6ddc043-410c-48b7-ad60-fde5923afee8">image.png (view on web)</a>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/6192'>https://github.com/openstreetmap/openstreetmap-website/pull/6192</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6192/commits/6c4103c3b5f738a1813faf93d2a11aeb9da0f9b3" class="commit-link">6c4103c</a> Image download w/ submit_tag</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6192/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6192/files#diff-551eb6f52a92a784f8ba60efacd3e3d3feb06a8016e6aed7d7530340d039ffc4">app/views/share_panes/show.html.erb</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6192.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6192.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6192.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6192.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6192">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOBRDPPGFJQC66N4QD3IKUMDAVCNFSM6AAAAACBNKWLDGVHI2DSMVQWIX3LMV43ASLTON2WKOZTGIZDMNZUGQ3TGMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOKXA4I44QPR3EBCDD3IKUMDA5CNFSM6AAAAACBNKWLDGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHMAVBXTI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6192</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6192",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6192",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>