mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Group#visibility_level
isn't shown in admin group edit page.
This commit is contained in:
parent
358d245dd8
commit
83bb042311
2 changed files with 6 additions and 3 deletions
|
@ -54,7 +54,11 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="visiblity">{{i18n 'groups.visibility_levels.title'}}</label>
|
<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>
|
</div>
|
||||||
|
|
||||||
{{#unless model.automatic}}
|
{{#unless model.automatic}}
|
||||||
|
|
|
@ -122,8 +122,7 @@ const Group = RestModel.extend({
|
||||||
|
|
||||||
@observes("visibility_level")
|
@observes("visibility_level")
|
||||||
_updatePublic() {
|
_updatePublic() {
|
||||||
let visibility_level = parseInt(this.get('visibility_level'));
|
if (this.get('visibility_level') !== 0) {
|
||||||
if (visibility_level !== 0) {
|
|
||||||
this.set('public', false);
|
this.set('public', false);
|
||||||
this.set('allow_membership_requests', false);
|
this.set('allow_membership_requests', false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue