mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Added basic email notification for comment in staff
This commit is contained in:
parent
385000d4ce
commit
27212475f3
2 changed files with 50 additions and 0 deletions
|
@ -161,3 +161,28 @@
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Notifications */
|
||||||
|
.user-settings-heading {
|
||||||
|
border-top: 1px solid var(--lightgrey);
|
||||||
|
padding-top: 4vw;
|
||||||
|
margin-top: 4vw;
|
||||||
|
font-size: 1.55rem;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 1.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-setting-toggle {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-setting-toggle label {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-setting-toggle p {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
|
@ -297,6 +297,31 @@
|
||||||
</p>
|
</p>
|
||||||
</GhFormGroup>
|
</GhFormGroup>
|
||||||
|
|
||||||
|
{{#if (feature 'comments')}}
|
||||||
|
<h4 class="user-settings-heading">Email notifications</h4>
|
||||||
|
<GhFormGroup @errors={{this.user.errors}} @hasValidated={{this.user.hasValidated}} @property="email">
|
||||||
|
<div class="user-setting-toggle">
|
||||||
|
<div>
|
||||||
|
<label for="user-email">Comments</label>
|
||||||
|
<p>Send notifications on members commenting on your posts</p>
|
||||||
|
</div>
|
||||||
|
<div class="for-switch">
|
||||||
|
<label class="switch" for={{notifications.comment}}>
|
||||||
|
<Input
|
||||||
|
{{!-- @checked={{newsletter.subscribed}} --}}
|
||||||
|
@type="checkbox"
|
||||||
|
id={{notifications.comment}}
|
||||||
|
name="comment-emails"
|
||||||
|
data-test-checkbox="member-subscribed"
|
||||||
|
{{!-- {{on "click" (fn this.updateNewsletterPreference newsletter)}} --}}
|
||||||
|
/>
|
||||||
|
<span class="input-toggle-component"></span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</GhFormGroup>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue