diff --git a/ghost/admin/app/controllers/settings/staff/user.js b/ghost/admin/app/controllers/settings/staff/user.js index 4b82e4ea01..0cd80509b5 100644 --- a/ghost/admin/app/controllers/settings/staff/user.js +++ b/ghost/admin/app/controllers/settings/staff/user.js @@ -221,6 +221,11 @@ export default class UserController extends Controller { this.user.milestoneNotifications = event.target.checked; } + @action + toggleDonationNotifications(event) { + this.user.donationNotifications = event.target.checked; + } + @action toggleMemberEmailAlerts(type, event) { if (type === 'free-signup') { diff --git a/ghost/admin/app/models/user.js b/ghost/admin/app/models/user.js index c794b4cd0d..8374974d93 100644 --- a/ghost/admin/app/models/user.js +++ b/ghost/admin/app/models/user.js @@ -43,6 +43,7 @@ export default BaseModel.extend(ValidationEngine, { paidSubscriptionCanceledNotification: attr(), mentionNotifications: attr(), milestoneNotifications: attr(), + donationNotifications: attr(), ghostPaths: service(), ajax: service(), session: service(), diff --git a/ghost/admin/app/templates/settings/staff/user.hbs b/ghost/admin/app/templates/settings/staff/user.hbs index 796c18d69e..331a5d3319 100644 --- a/ghost/admin/app/templates/settings/staff/user.hbs +++ b/ghost/admin/app/templates/settings/staff/user.hbs @@ -265,107 +265,130 @@ {{#if this.user.isAdmin}} - {{#if (feature 'webmentions')}} -
Every time another site links to your work.
+ {{#if (feature 'webmentions')}} +Every time another site links to your work.
+Every time a new free member signs up
-Every time a member starts a new paid subscription
-Every time a member cancels their paid subscription
-Occasional summaries of your audience & revenue growth
+ {{#if this.canToggleMemberAlerts}} +Every time a new free member signs up
+Every time a member starts a new paid subscription
+Every time a member cancels their paid subscription
+Every time you receive a donation.
+Occasional summaries of your audience & revenue growth
+