<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #5971.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3032625521" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5971" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5971/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5971">#5971</a>.</p>
<p dir="auto"><code class="notranslate">user.js</code> does too many different things. It's better to take it apart and have smaller scripts included from all of the pages that currently include it.</p>
<p dir="auto">This PR takes out dashboard-specific code from <code class="notranslate">user.js</code> and puth it into <code class="notranslate">dashboard.js</code>. This code doesn't include OSM.HomeLocationNameGeocoder which would fail on dashboard pages.</p>
<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/5972'>https://github.com/openstreetmap/openstreetmap-website/pull/5972</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5972/commits/aa5f2b6ac6da91ac0f7baf5fb3ad6c29c2acb5bd" class="commit-link">aa5f2b6</a> Move dashboard-specific javascript to dashboard.js</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5972/files">5 files</a>)</p>
<ul>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5972/files#diff-10b07fb1b785bd2ee4b121e8547b9253568bbdb0d8fd78a450d4ed696dd13f56">app/assets/javascripts/dashboard.js</a>
(33)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5972/files#diff-6bf5e2b503c6238cb80234a21524267bec1b1a820855412a5795c6296f11cb89">app/assets/javascripts/user.js</a>
(134)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5972/files#diff-e390cd3017ea55a29b03a500b95a0203d99769e74ccc353cd2bd8c2bf058ec63">app/views/dashboards/show.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5972/files#diff-6091542e4570d68ca546a4a893b0d0202a75b9aa6fabf4e8aa0b4122ae6a3544">app/views/profiles/edit.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5972/files#diff-807c7138d7fbf9195d5c1208b8189e29f2f3232c34d7744935f24467c19c55af">test/system/dashboard_test.rb</a>
(21)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5972.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5972.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5972.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5972.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/5972">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJUDYXYE42J3UFA3TT24GX5DAVCNFSM6AAAAAB4HIRSSWVHI2DSMVQWIX3LMV43ASLTON2WKOZTGAZTGMRRGY3TMNQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIYYTIHW2ZGUZJ2SDT24GX5DA5CNFSM6AAAAAB4HIRSSWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLJSZW7Y.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/5972</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/5972",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5972",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>