mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Fixed "memberssubscribers" text in editor status for scheduled posts
refs d11cf9e1c7
- "free subscribers" worked but "paid" and "all" states still had "members" in the fixed string along with the new "members/subscribers" plural variable resulting in text like "all memberssusbcribers of My Newsletter"
This commit is contained in:
parent
a6dcd936bc
commit
93c9035c49
1 changed files with 3 additions and 3 deletions
|
@ -39,7 +39,7 @@ export default class MembersCountCacheService extends Service {
|
|||
const allNewsletters = await this.store.query('newsletter', {status: 'active', limit: 'all'});
|
||||
this.hasMultipleNewsletters = allNewsletters.length > 1;
|
||||
}
|
||||
|
||||
|
||||
const user = this.session.user;
|
||||
|
||||
const nounSingular = newsletter && this.hasMultipleNewsletters ? 'subscriber' : 'member';
|
||||
|
@ -59,10 +59,10 @@ export default class MembersCountCacheService extends Service {
|
|||
return 'all free ' + nounPlural + suffix;
|
||||
}
|
||||
if (isPaid) {
|
||||
return 'all paid members' + nounPlural + suffix;
|
||||
return 'all paid ' + nounPlural + suffix;
|
||||
}
|
||||
if (isAll) {
|
||||
return 'all members' + nounPlural + suffix;
|
||||
return 'all ' + nounPlural + suffix;
|
||||
}
|
||||
|
||||
return 'a custom members segment';
|
||||
|
|
Loading…
Add table
Reference in a new issue