docbrown/app/views/organizations
Suzanne Aitchison 75b6c8ed96
Use a single listener for all follow buttons on a page (#14246)
* create new pack, handle user follow buttons, use pack on article page, remove initializeUserFollowButts

* init all follow button types, add pack to tag index and podcast episode pages

* add pack to all relevant pages, listen for newly inserted follow buttons

* change to searchParams to remove follow button initializer calls

* fix bug with tag page, add pack to notifications page

* fix issue with follow back inner text

* update cypress specs

* run the followbuttons code on sponsors page

* remove extra foreach

* add test for follow from article sidebar

* add test for follow and unfollow tag

* add test for the tag index page

* add spec for organisation profile follow

* add tests for follow buttons in search results

* add tests for notification follows

* commit missed file - woops

* show login modal if user is logged out when they click

* add cypress tests for logged out state

* change tag button initialization

* remove data-button-initialized

* init follow buttons from base pack

* handle the case where multiple follow buttons exist on a page for the same user

* account for instantclick and userdata not being defined, lower coverage for jest

* use getInstantClick

* fix issue with set initialisation

* only listen for mutations in areas we know follow buttons may be added dynamically

* small refactors
2021-07-27 10:45:50 +01:00
..
_header.html.erb Rename profile header partial (#13639) 2021-05-03 18:36:24 -05:00
_liquid.html.erb [deploy] Reintroduce sticky_nav changes (ab81f36 & 7f92855) (#10263) 2020-09-09 15:33:13 -04:00
_main_feed.html.erb Optimize loading partials as collections (#12276) 2021-01-18 14:18:33 +03:00
_metadata.html.erb Organizations profile header redesign (#10258) 2020-09-10 12:42:36 +02:00
_sidebar.html.erb Add headings to header tags (#1003) 2018-12-19 16:47:44 -05:00
_sidebar_additional.html.erb Add loading=lazy to image tags (#10888) 2021-05-27 19:01:21 +02:00
show.html.erb Use a single listener for all follow buttons on a page (#14246) 2021-07-27 10:45:50 +01:00