docbrown/app/javascript/CommentSubscription
Miguel Guardia 364c3a8252
Fix subscribe to discussion button when user is not logged in (#12837)
* Add logic to subscribe button that shows login modal if user is not logged in
Pass in userstatus to CommentSubscription
Remove logic that loads comment subscription button for logged-in users only

* Modify test to account for new userStatus input in CommentSubscription

* Change UserStatus to isLoggedIn
Add propType to isLoggedIn
Remove preventDefault from click event

* Fix indentation and input on commentSubscription test
Create new isLoggedIn variable that returns boolean
Replace all instances of userStatus to isLoggedIn
Create test for showLoginModal when subscribing
2021-03-03 18:50:29 -06:00
..
__stories__ Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
__tests__ Fix subscribe to discussion button when user is not logged in (#12837) 2021-03-03 18:50:29 -06:00
CommentSubscription.jsx Fix subscribe to discussion button when user is not logged in (#12837) 2021-03-03 18:50:29 -06:00
commentSubscriptionUtilities.jsx [deploy] Add comment subscription component to article page (#7205) 2020-05-05 12:50:30 -04:00
index.js Remove non application files from frontend code coverage (#11752) 2020-12-04 20:00:20 -05:00