mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Added member count to publish flow newsletter dropdown
no issue - it's useful to see an indication of how many overall members are subscribed to each newsletter when selecting which newsletter to send to - added `?include=count.members` to the newsletter fetch query so the counts are available to show in the dropdown
This commit is contained in:
parent
6e3267315a
commit
ebcf4c7c16
2 changed files with 2 additions and 2 deletions
|
@ -258,7 +258,7 @@ export class PublishOptions {
|
|||
// TODO: query limit service
|
||||
|
||||
// newsletters
|
||||
const fetchNewsletters = this.store.query('newsletter', {status: 'active', limit: 'all'});
|
||||
const fetchNewsletters = this.store.query('newsletter', {status: 'active', limit: 'all', include: 'count.members'});
|
||||
|
||||
yield Promise.all([countTotalMembers, fetchNewsletters]);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
@dropdownClass="gh-publish-newsletter-dropdown"
|
||||
as |newsletter|
|
||||
>
|
||||
{{newsletter.name}}
|
||||
{{newsletter.name}} <span>({{newsletter.count.members}})</span>
|
||||
</PowerSelect>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
Loading…
Add table
Reference in a new issue