<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2354285020" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4900" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4900/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4900">#4900</a> v2</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/5754'>https://github.com/openstreetmap/openstreetmap-website/pull/5754</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5754/commits/96a12196bfc234af10b6cbda305f2bb9b48a07ee" class="commit-link">96a1219</a>  Separate setting/clearing listeners/values on directions endpoints</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5754/commits/0ba8ac49f6815db5a971776f4960f16549d18645" class="commit-link">0ba8ac4</a>  Move directions params init code to its own function</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5754/commits/1c66d7f50fe4d8ef22771f99d8690bc5136f30b7" class="commit-link">1c66d7f</a>  Move directions listeners init code to its own function</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5754/commits/f9caa1adc0bd76f39e8da886bef8a0d1d9934b5e" class="commit-link">f9caa1a</a>  Write directions sidebar header using .erb template</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5754/commits/bede9d28f1fc887010f937d08f00ec5178d9d481" class="commit-link">bede9d2</a>  Hide loader spinner when sidebar content is not displayed</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5754/commits/0dc63081681c0a2a6ff69c4b8d22626e4bb34f00" class="commit-link">0dc6308</a>  Move directions title out of javascript i18n strings</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5754/files">7 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5754/files#diff-cdc070ced1c4000efd1e28357fd26b2fd617d7fccfeae0324222231db75dd6ee">app/assets/javascripts/index.js</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5754/files#diff-720e11d91a0c3a64a70dd6bfad46c242e9f4755b2470797031de5b55ff9a8c5d">app/assets/javascripts/index/directions-endpoint.js</a>
    (20)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5754/files#diff-fdb9558c2ba79ddf9fbcb92594a8a8fa54abb1b3e25ce264de37951b428a958b">app/assets/javascripts/index/directions.js</a>
    (88)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5754/files#diff-e86a39e6d0b163f152db8843fc7d647a3f5d648de4a74f1732bef4474b6e5bc8">app/assets/stylesheets/common.scss</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5754/files#diff-8a114414669453ee10afc6603077a733d82cbe1cfea93d921414abd72ef1356f">app/views/directions/search.html.erb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5754/files#diff-eaeaf6b733bc454c8c41be224e85cdca90bc6e0e5bc1f02f9f86315cfc6fafab">app/views/layouts/map.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5754/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5754.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5754.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5754.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5754.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/5754">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLM7X6MVLRG64RBQME32TAMF3AVCNFSM6AAAAABYOIARGOVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA4TSOJTGI4TIMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNZC56LZONOFNQBPE32TAMF3A5CNFSM6AAAAABYOIARGOWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKZWLXB4.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/5754</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/5754",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5754",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>