mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Added "email when published" toggle to publish menu
This commit is contained in:
parent
3c850068db
commit
ff5f46ae1b
@ -106,6 +106,7 @@ export default Model.extend(Comparable, ValidationEngine, {
|
||||
updatedBy: attr('number'),
|
||||
url: attr('string'),
|
||||
uuid: attr('string'),
|
||||
sendEmailWhenPublished: attr('boolean', {defaultValue: false}),
|
||||
|
||||
authors: hasMany('user', {
|
||||
embedded: 'always',
|
||||
|
@ -24,4 +24,16 @@
|
||||
<div class="gh-publishmenu-radio-desc">Set automatic future publish date</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex mb4">
|
||||
<div class="for-switch mr3">
|
||||
<label class="switch" for="email-when-published-checkbox">
|
||||
<Input @checked={{this.post.sendEmailWhenPublished}} @type="checkbox" @id="email-when-published-checkbox" @name="email-when-published" />
|
||||
<span class="input-toggle-component"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="flex-grow-1">
|
||||
<div class="gh-publishmenu-radio-label">Email to members</div>
|
||||
<div class="gh-publishmenu-radio-desc">Send email when published</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
Loading…
Reference in New Issue
Block a user