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

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

diff --git a/app/assets/javascripts/discourse/app/components/groups-form-interaction-fields.js b/app/assets/javascripts/discourse/app/components/groups-form-interaction-fields.js
index c0103a7..887ba21 100644
--- a/app/assets/javascripts/discourse/app/components/groups-form-interaction-fields.js
+++ b/app/assets/javascripts/discourse/app/components/groups-form-interaction-fields.js
@@ -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";
+    }
+  },
 });
diff --git a/app/assets/javascripts/discourse/app/templates/components/groups-form-interaction-fields.hbs b/app/assets/javascripts/discourse/app/templates/components/groups-form-interaction-fields.hbs
index 82725ad..e5eeb7b 100644
--- a/app/assets/javascripts/discourse/app/templates/components/groups-form-interaction-fields.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/groups-form-interaction-fields.hbs
@@ -30,7 +30,7 @@
     }}
 
     <div class="control-instructions">
-      {{i18n "admin.groups.manage.interaction.members_visibility_levels.description"}}
+      {{i18n membersVisibilityLevelsDescription}}
     </div>
   </div>
 {{/if}}
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 5a3939b..7112812 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -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:

GitHub sha: 97f701bc4c27c46b9660520d7c79cdac84895dea

This commit appears in #13995 which was approved by eviltrout. It was merged by techAPJ.