Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Put email post toggle behind members feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinansfield committed Nov 4, 2019
1 parent 7739ade commit 297a4c8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
2 changes: 2 additions & 0 deletions app/components/gh-publishmenu-draft.js
@@ -1,8 +1,10 @@
import Component from '@ember/component';
import moment from 'moment';
import {isEmpty} from '@ember/utils';
import {inject as service} from '@ember/service';

export default Component.extend({
feature: service(),

post: null,
saveType: null,
Expand Down
24 changes: 13 additions & 11 deletions app/templates/components/gh-publishmenu-draft.hbs
Expand Up @@ -24,16 +24,18 @@
<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>
{{#if this.feature.labs.members}}
<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>
<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>
{{/if}}
</section>

0 comments on commit 297a4c8

Please sign in to comment.