diff --git a/ghost/portal/src/App.js b/ghost/portal/src/App.js index c79a5edcfd..e356da0a37 100644 --- a/ghost/portal/src/App.js +++ b/ghost/portal/src/App.js @@ -248,7 +248,7 @@ export default class App extends React.Component { this.setState({ action: '' }); - }, 5000); + }, 2000); } catch (e) { this.setState({ action: `${action}:failed` diff --git a/ghost/portal/src/components/pages/AccountHomePage.js b/ghost/portal/src/components/pages/AccountHomePage.js index 82547bcd3e..3112f82d52 100644 --- a/ghost/portal/src/components/pages/AccountHomePage.js +++ b/ghost/portal/src/components/pages/AccountHomePage.js @@ -196,21 +196,13 @@ const PaidAccountActions = ({member, openUpdatePlan, onEditBilling}) => { return null; }; -const NotifyNewsletterUpdated = ({action}) => { - if (action === 'updateNewsletter:success') { - return ( -

- ✓ Newsletter updated -

- ); - } - return null; -}; - const AccountActions = ({member, action, openEditProfile, openUpdatePlan, onEditBilling, onToggleSubscription}) => { const {name, email, subscribed} = member; - const label = subscribed ? 'Subscribed to email newsletters' : 'Not subscribed to email newsletters'; + let label = subscribed ? 'Subscribed to email newsletters' : 'Not subscribed to email newsletters'; + if (action === 'updateNewsletter:success') { + label = '✓ Newsletter updated'; + } return (
@@ -227,7 +219,6 @@ const AccountActions = ({member, action, openEditProfile, openUpdatePlan, onEdit

Newsletter

{label}

-
{