FIX: edit history user setting was appearing
This commit is contained in:
parent
53af2abb20
commit
bbbca820d8
app/assets/javascripts/discourse
|
@ -213,7 +213,7 @@ Discourse.User = Discourse.Model.extend({
|
||||||
data[s + '_category_ids'] = cats;
|
data[s + '_category_ids'] = cats;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!Discourse.SiteSettings.edit_history_available_to_public) {
|
if (!Discourse.SiteSettings.edit_history_visible_to_public) {
|
||||||
data['edit_history_public'] = this.get('edit_history_public');
|
data['edit_history_public'] = this.get('edit_history_public');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -167,7 +167,7 @@
|
||||||
{{preference-checkbox labelKey="user.enable_quoting" checked=enable_quoting}}
|
{{preference-checkbox labelKey="user.enable_quoting" checked=enable_quoting}}
|
||||||
{{preference-checkbox labelKey="user.dynamic_favicon" checked=dynamic_favicon}}
|
{{preference-checkbox labelKey="user.dynamic_favicon" checked=dynamic_favicon}}
|
||||||
{{preference-checkbox labelKey="user.disable_jump_reply" checked=disable_jump_reply}}
|
{{preference-checkbox labelKey="user.disable_jump_reply" checked=disable_jump_reply}}
|
||||||
{{#unless Discourse.SiteSettings.edit_history_available_to_public}}
|
{{#unless Discourse.SiteSettings.edit_history_visible_to_public}}
|
||||||
{{preference-checkbox labelKey="user.edit_history_public" checked=edit_history_public}}
|
{{preference-checkbox labelKey="user.edit_history_public" checked=edit_history_public}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
{{plugin-outlet "user_custom_preferences"}}
|
{{plugin-outlet "user_custom_preferences"}}
|
||||||
|
|
Loading…
Reference in New Issue