docbrown/app/views/podcast_episodes
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
..
_episodes_feed.html.erb Add loading=lazy to image tags (#10888) 2021-05-27 19:01:21 +02:00
_liquid.html.erb Replace liquid's hardcoded image path with #asset_path (#12616) 2021-02-09 08:31:41 -05:00
_meta.html.erb Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00
_podcast_bar.html.erb Fix broken Podcast liquid tag (#11511) 2021-02-08 13:53:12 -05:00
_sidebar.html.erb [deploy] Migrate ImageResizer to Images::Optimizer (#9720) 2020-08-14 09:44:30 -04:00
_sidebar_additional.html.erb Stories views reorganization (#1317) 2018-12-13 14:54:02 -05:00
index.html.erb stories list script as separate js file - defer attribute (#13993) 2021-06-21 10:59:30 +07:00
show.html.erb Use a single listener for all follow buttons on a page (#14246) 2021-07-27 10:45:50 +01:00