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

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

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 887ba21..d48078c 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
@@ -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
+    );
   },
 });
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 e5eeb7b..df6d0ac 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
@@ -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}}
 
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 7615506..6dd8a4b 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -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:

GitHub sha: e9b2415e7dfd2d26005fd13ee3649cdf8cd8419d

This commit appears in #14005 which was approved by SamSaffron. It was merged by SamSaffron.