mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 18:06:18 +08:00
FIX: Group#visibility_level
isn't shown in admin group edit page.
This commit is contained in:
parent
358d245dd8
commit
83bb042311
|
@ -54,7 +54,11 @@
|
|||
|
||||
<div>
|
||||
<label for="visiblity">{{i18n 'groups.visibility_levels.title'}}</label>
|
||||
{{combo-box name="alias" valueAttribute="value" value=model.visibility_level content=visibilityLevelOptions}}
|
||||
{{combo-box name="alias"
|
||||
valueAttribute="value"
|
||||
value=model.visibility_level
|
||||
content=visibilityLevelOptions
|
||||
castInteger=true}}
|
||||
</div>
|
||||
|
||||
{{#unless model.automatic}}
|
||||
|
|
|
@ -122,8 +122,7 @@ const Group = RestModel.extend({
|
|||
|
||||
@observes("visibility_level")
|
||||
_updatePublic() {
|
||||
let visibility_level = parseInt(this.get('visibility_level'));
|
||||
if (visibility_level !== 0) {
|
||||
if (this.get('visibility_level') !== 0) {
|
||||
this.set('public', false);
|
||||
this.set('allow_membership_requests', false);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user