[openstreetmap/openstreetmap-website] [iD] clear default connections when using preauth, fixes (PR #3792)

Martin Raifer notifications at github.com
Mon Nov 14 12:05:07 UTC 2022


This is a small additional integration adjustment needed for iD v2.23: After https://github.com/openstreetmap/iD/commit/c8a3cf154b43469d643b034f47d4e48d449582a1 the configuration of API connections is not done in the "boot-up" routine anymore. But as the integrated iD uses the pre-authentication, it is now necessary to clear the default api (_live_ / _dev_) connections such that the "api" switcher (<img src="https://user-images.githubusercontent.com/1927298/201652584-c2a4b729-6235-4bb1-a0c1-1d96df04497d.png" height=24>) on the bottom right doesn't shown up (it is only supposed to show up on the stand-alone instances of iD such as the one on https://ideditor-release.netlify.app/).

PS: this should have been part of #3789 already.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/3792

-- Commit Summary --

  * clear default connections when using preauth

-- File Changes --

    M app/assets/javascripts/id.js (13)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/3792.patch
https://github.com/openstreetmap/openstreetmap-website/pull/3792.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3792
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/3792 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20221114/072a4d70/attachment.htm>


More information about the rails-dev mailing list