Changed confirm publish modal wording

refs https://github.com/TryGhost/Team/issues/1169

- switched from "no members" to "0 members"
This commit is contained in:
Kevin Ansfield 2021-12-09 12:12:46 +00:00
parent 24eeaf68ff
commit 35c8be787c
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{{#if @filter}}
<GhMembersFilterCount @filter={{concat "subscribed:true+(" @filter ")"}} @knownCount={{@knownCount}} />
{{else}}
no members
0 members
{{/if}}

View File

@ -62,13 +62,13 @@ export default class ModalsEditorConfirmPublishComponent extends Component {
if (sendEmailWhenPublished === 'none') {
this.memberCount = 0;
this.memberCountString = 'no members';
this.memberCountString = '0 members';
}
const filter = `subscribed:true+(${sendEmailWhenPublished})`;
this.memberCount = sendEmailWhenPublished ? yield this.membersCountCache.count(filter) : 0;
this.memberCountString = sendEmailWhenPublished ? yield this.membersCountCache.countString(filter) : 'no members';
this.memberCountString = sendEmailWhenPublished ? yield this.membersCountCache.countString(filter) : '0 members';
}
@task