Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

feat: newsletter improvment #1447

Merged
merged 1 commit into from Jan 21, 2021
Merged

Conversation

ytvnr
Copy link
Member

@ytvnr ytvnr commented Jan 20, 2021

@ytvnr ytvnr force-pushed the issues/#4692_newsletter_improvment branch 2 times, most recently from d2e6e30 to 428b8e6 Compare January 20, 2021 14:59
src/index.scss Outdated
@@ -30,7 +30,7 @@ $backgroundColor: #fdfdfd;
@import 'components/error/error';
@import 'components/import/import-api';
@import 'components/navbar/navbar';
@import 'components/newsletter-subcription/newsletter-subscription';
@import 'src/components/newsletter-subcription/newsletter-reminder';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's strange to add 'src' ...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

flex-direction: column;
align-items: center;
justify-content: center;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's not necessary, should be part by component

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolved in pair programming !


this.newsletterPage = document.querySelector('gv-newsletter-subscription');
this.newsletterPage.addEventListener('gv-newsletter-subscription:subscribe', this.onSubscribe.bind(this));
this.newsletterPage.addEventListener('gv-newsletter-subscription:skip', this.onSkip.bind(this));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want, the good syntax to add listeners in template is :
ng-on-gv-newsletter:subscribe="$ctrl.onSubscribe($event)"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed, we will keep as is since this component is simple and we set a property directly here

@ytvnr ytvnr force-pushed the issues/#4692_newsletter_improvment branch from 428b8e6 to 82ea1d5 Compare January 21, 2021 10:39
@gcusnieux gcusnieux merged commit 9188228 into 3.5.x Jan 21, 2021
@gcusnieux gcusnieux deleted the issues/#4692_newsletter_improvment branch January 21, 2021 10:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants