UX: show flair help text for private member visibility only (#14005)

This commit is contained in:
Arpit Jalan 2021-08-11 11:53:58 +05:30 committed by GitHub
parent e157925308
commit e9b2415e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 13 deletions

View File

@ -99,13 +99,9 @@ export default Component.extend({
},
@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";
}
membersVisibilityPrivate(membersVisibilityLevel) {
return (
membersVisibilityLevel !== this.visibilityLevelOptions.firstObject.value
);
},
});

View File

@ -29,9 +29,11 @@
onChange=(action (mut model.members_visibility_level))
}}
<div class="control-instructions">
{{i18n membersVisibilityLevelsDescription}}
</div>
{{#if membersVisibilityPrivate}}
<div class="control-instructions">
{{i18n "admin.groups.manage.interaction.members_visibility_levels.description"}}
</div>
{{/if}}
</div>
{{/if}}

View File

@ -3928,8 +3928,7 @@ en:
description: "Admins can see all groups."
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."
description: "Admins can see members of all groups. Flair is visible to all users."
publish_read_state: "On group messages publish group read state"
membership: