mirror of
https://github.com/TryGhost/Ghost.git
synced 2023-12-13 21:00:40 +01:00
Removed success toast on 1-click subscribe (#18119)
refs https://github.com/TryGhost/Product/issues/3880
This commit is contained in:
parent
e888a4e820
commit
b5ab3af8a6
1 changed files with 2 additions and 12 deletions
|
@ -477,7 +477,7 @@ async function updateProfile({data, state, api}) {
|
||||||
|
|
||||||
async function oneClickSubscribe({data: {siteUrl}, state}) {
|
async function oneClickSubscribe({data: {siteUrl}, state}) {
|
||||||
const externalSiteApi = setupGhostApi({siteUrl: siteUrl, apiUrl: 'not-defined', contentApiKey: 'not-defined'});
|
const externalSiteApi = setupGhostApi({siteUrl: siteUrl, apiUrl: 'not-defined', contentApiKey: 'not-defined'});
|
||||||
const {t, member} = state;
|
const {member} = state;
|
||||||
|
|
||||||
const referrerUrl = window.location.href;
|
const referrerUrl = window.location.href;
|
||||||
const referrerSource = getRefDomain();
|
const referrerSource = getRefDomain();
|
||||||
|
@ -498,17 +498,7 @@ async function oneClickSubscribe({data: {siteUrl}, state}) {
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
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!`)
|
|
||||||
})
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const Actions = {
|
const Actions = {
|
||||||
|
|
Loading…
Reference in a new issue