FIX: Allow group members to freely exit group option incorrectly disabled.
https://meta.discourse.org/t/cannot-check-allow-members-to-leave-group-freely-when-group-is-configured-to-allow-users-to-send-membership-requests-to-group-owners/73400
This commit is contained in:
parent
4e618aa08f
commit
abdfac9cb5
|
@ -33,8 +33,7 @@
|
||||||
<label>
|
<label>
|
||||||
{{input type='checkbox'
|
{{input type='checkbox'
|
||||||
checked=model.public_exit
|
checked=model.public_exit
|
||||||
class="group-edit-public-exit"
|
class="group-edit-public-exit"}}
|
||||||
disabled=model.allow_membership_requests}}
|
|
||||||
|
|
||||||
{{i18n 'groups.public_exit'}}
|
{{i18n 'groups.public_exit'}}
|
||||||
</label>
|
</label>
|
||||||
|
|
|
@ -43,6 +43,11 @@ QUnit.test("Editing group", assert => {
|
||||||
'it should disable group public admission input'
|
'it should disable group public admission input'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
assert.ok(
|
||||||
|
find('.group-edit-public-exit[disabled]').length === 0,
|
||||||
|
'it should not disable group public exit input'
|
||||||
|
);
|
||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
find('.group-edit-membership-request-template').length, 1,
|
find('.group-edit-membership-request-template').length, 1,
|
||||||
'it should display the membership request template field'
|
'it should display the membership request template field'
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default {
|
||||||
"alias_level":99,
|
"alias_level":99,
|
||||||
"visible":true,
|
"visible":true,
|
||||||
"public_admission":true,
|
"public_admission":true,
|
||||||
"public_exit":true,
|
"public_exit":false,
|
||||||
"flair_url": 'fa-adjust',
|
"flair_url": 'fa-adjust',
|
||||||
"is_group_owner":true,
|
"is_group_owner":true,
|
||||||
"mentionable":true,
|
"mentionable":true,
|
||||||
|
|
Loading…
Reference in New Issue