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

[WIP] feat(default-theme): Add newsletter subscription #1928

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mdanilowicz
Copy link
Collaborator

Work on this PR will be continued after backend fixes

Changes

closes #1756

Checklist

@vercel
Copy link

vercel bot commented Aug 3, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
shopware-pwa-docs ⬜️ Ignored (Inspect) Aug 3, 2022 at 4:08PM (UTC)

Copy link
Collaborator

@patzick patzick left a comment

Choose a reason for hiding this comment

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

Very nice, just one thing to improve with form data model :)

</p>
</slot>
<SwInput
v-model="user.email"
Copy link
Collaborator

Choose a reason for hiding this comment

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

we shouldn't modify the user's email here, for form purposes we can add prefilled ref, for example

const userEmail = ref(user.value?.email);

Comment on lines +38 to +39
import { getApplicationContext } from "@shopware-pwa/composables"
import { useUser, useNotifications } from "@shopware-pwa/composables"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
import { getApplicationContext } from "@shopware-pwa/composables"
import { useUser, useNotifications } from "@shopware-pwa/composables"
import { getApplicationContext, useUser, useNotifications } from "@shopware-pwa/composables"

@mkucmus
Copy link
Collaborator

mkucmus commented Aug 29, 2022

@mdanilowicz do we have an issue which blocks us here to link between repositories? available maybe here: https://issues.shopware.com

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

Successfully merging this pull request may close these issues.

[FEATURE] Allow to unsubscribe an user from newsletter
3 participants