UX: update member visibility help text to include flair information (#13995)

This commit is contained in:
Arpit Jalan 2021-08-10 19:31:29 +05:30 committed by GitHub
parent 6d41c37c16
commit 97f701bc4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 1 deletions

View File

@ -97,4 +97,15 @@ export default Component.extend({
canAdminGroup(isCreated, canAdmin, canCreate) {
return (!isCreated && canCreate) || (isCreated && canAdmin);
},
@discourseComputed("membersVisibilityLevel")
membersVisibilityLevelsDescription(membersVisibilityLevel) {
if (
membersVisibilityLevel === this.visibilityLevelOptions.firstObject.value
) {
return "admin.groups.manage.interaction.members_visibility_levels.description";
} else {
return "admin.groups.manage.interaction.members_visibility_levels.description_flair_visible";
}
},
});

View File

@ -30,7 +30,7 @@
}}
<div class="control-instructions">
{{i18n "admin.groups.manage.interaction.members_visibility_levels.description"}}
{{i18n membersVisibilityLevelsDescription}}
</div>
</div>
{{/if}}

View File

@ -3919,6 +3919,7 @@ en:
members_visibility_levels:
title: "Who can see this group's members?"
description: "Admins can see members of all groups."
description_flair_visible: "Admins can see members of all groups. Flair is visible to all users."
publish_read_state: "On group messages publish group read state"
membership: