Removed success toast on 1-click subscribe (#18119)

refs https://github.com/TryGhost/Product/issues/3880
This commit is contained in:
Djordje Vlaisavljevic 2023-09-13 16:25:17 +01:00 committed by GitHub
parent e888a4e820
commit b5ab3af8a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -477,7 +477,7 @@ async function updateProfile({data, state, api}) {
async function oneClickSubscribe({data: {siteUrl}, state}) {
const externalSiteApi = setupGhostApi({siteUrl: siteUrl, apiUrl: 'not-defined', contentApiKey: 'not-defined'});
const {t, member} = state;
const {member} = state;
const referrerUrl = window.location.href;
const referrerSource = getRefDomain();
@ -498,17 +498,7 @@ async function oneClickSubscribe({data: {siteUrl}, state}) {
]
});
return {
popupNotification: createPopupNotification({
type: 'subscribe:success',
autoHide: true,
closeable: true,
duration: 10000,
status: 'success',
state,
message: t(`To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!`)
})
};
return {};
}
const Actions = {