diff --git a/assets/js/pages/groups/pages/settings.js b/assets/js/pages/groups/pages/settings.js index 6f5257b5..36415fbd 100644 --- a/assets/js/pages/groups/pages/settings.js +++ b/assets/js/pages/groups/pages/settings.js @@ -204,7 +204,7 @@ const GroupSettingsPage = { //Closed registration (required for secret groups) var closedRegistration = createFormGroup({ target: registrationLevelForm, - label: "Closed registration (the only way to join the group is to be invited by a moderator)", + label: tr("Closed registration (the only way to join the group is to be invited by a moderator)"), name: "group-registration-level", type: "radio", value: "closed", @@ -253,6 +253,16 @@ const GroupSettingsPage = { }); + // Make the list of members of the group public + const isMembersListPublic = createFormGroup({ + target: postsLevelsForm, + type: "checkbox", + label: tr("Make the list of members of the group public"), + checked: settings.is_members_list_public + }); + + + //Group description @@ -305,6 +315,7 @@ const GroupSettingsPage = { visibility: visibilityForm.elements["group-visibility"].value, registration_level: registrationLevelForm.elements["group-registration-level"].value, posts_level: postsLevelsForm.elements["group-posts-level"].value, + is_members_list_public: isMembersListPublic.checked, description: groupDescription.value, url: groupURL.value }; @@ -313,7 +324,7 @@ const GroupSettingsPage = { submitButton.disabled = true; //Perform the request on the API - ComunicWeb.components.groups.interface.setSettings(id, settings, function(result){ + GroupsInterface.setSettings(id, settings, function(result){ //Unlock send button submitButton.disabled = false; @@ -332,7 +343,7 @@ const GroupSettingsPage = { /** - * Group account image + * Group image */ const groupLogoSettingsContainer = createElem2({ appendTo: settingsPage, diff --git a/assets/js/typings/Group.d.ts b/assets/js/typings/Group.d.ts index 67807e88..ba79be59 100644 --- a/assets/js/typings/Group.d.ts +++ b/assets/js/typings/Group.d.ts @@ -5,6 +5,7 @@ */ declare interface AdvancedGroupInfo extends Group { + is_members_list_public: Boolean, time_create: Number, description: String, url: String,