@nertc commented on this pull request.
> @@ -10,6 +10,35 @@ $(document).ready(function () {
var defaultHomeZoom = 12;
var map, marker, deleted_lat, deleted_lon;
+ if ($("#social_links").length) {
+ $("#add-social-link").click(function (event) {
+ event.preventDefault();
+ const newIndex = -Date.now();
+ const socialLinkForm = $(`
+ <div class="social-link-added-fields row mb-3">
+ <div class="col-sm-8">
+ <input class="form-control" type="text"
name="user[social_links_attributes][${newIndex}][url]"
id="user_social_links_attributes_${newIndex}_url">
+ </div>
+ <button type="button" class="btn btn-outline-primary col-sm-2
align-self-start">${I18n.t("javascripts.profiles.edit.social_links.remove")}</button>
https://github.com/openstreetmap/openstreetmap-website/blob/698c29697dcf468035de2d270c8f0359e30f4609/config/locales/en.yml#L3304-L3307
There is a key for `javascripts.profiles.edit.social_links.remove`. Adding
`profiles.edit.social_links.remove` directly into the JS causes it to be
missing for the JS code:

--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5439#discussion_r1958192664
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/5439/review/2620992...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev