Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conditionally render 'remove from newsletter' checkbox #34

Open
SKairinos opened this issue Aug 14, 2024 · 0 comments
Open

conditionally render 'remove from newsletter' checkbox #34

SKairinos opened this issue Aug 14, 2024 · 0 comments

Comments

@SKairinos
Copy link
Contributor

When a user is deleting their account, there's a checkbox which allows them to remove their email address from our newsletter. The checkbox is always rendered, regardless of whether or not they are registered to our newsletter. We should only render this checkbox if the user is currently registered to our newsletter.

To support this change, will need to modify the to_representation method on the user serializer in the CFL python package. This data object should include a boolean field called added_to_newsletter, which will be set by calling Dotdigital's API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant