Guo Xiang Tan 2017-11-06 10:30:58 +08:00
parent 4e618aa08f
commit abdfac9cb5
3 changed files with 7 additions and 3 deletions

View File

@ -33,8 +33,7 @@
<label>
{{input type='checkbox'
checked=model.public_exit
class="group-edit-public-exit"
disabled=model.allow_membership_requests}}
class="group-edit-public-exit"}}
{{i18n 'groups.public_exit'}}
</label>

View File

@ -43,6 +43,11 @@ QUnit.test("Editing group", assert => {
'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(
find('.group-edit-membership-request-template').length, 1,
'it should display the membership request template field'

View File

@ -9,7 +9,7 @@ export default {
"alias_level":99,
"visible":true,
"public_admission":true,
"public_exit":true,
"public_exit":false,
"flair_url": 'fa-adjust',
"is_group_owner":true,
"mentionable":true,