feat: force ‘require approval’ membership requirement

For new and existing communities, force the `require approval` membership requirement in the create/edit community popup.

### NOTE
This will not affect the membership requirement value already-created communities.
This commit is contained in:
Eric Mastro 2021-05-24 16:27:46 +10:00 committed by Eric Mastro
parent 24d8e429b8
commit 03addd4ea9
1 changed files with 6 additions and 0 deletions

View File

@ -348,6 +348,9 @@ ModalPopup {
StatusSettingsLineButton {
id: membershipRequirementSetting
// TODO: remove 'isEnabled: false' when we no longer need to force
// "request access" membership
isEnabled: false
anchors.top: separator1.bottom
anchors.topMargin: Style.current.halfPadding
text: qsTr("Membership requirement")
@ -420,6 +423,9 @@ ModalPopup {
MembershipRequirementPopup {
id: membershipRequirementSettingPopup
// TODO: remove the 'checkedMemership' setting when we no longer need
// to force "require approval" membership
checkedMembership: Constants.communityChatOnRequestAccess
}
}