models: Rename Realm.show_digest_email field.

This renames Realm.show_digest_email field to
digest_emails_enabled, for greater clarity as to what it does
just from seeing the setting name, without having to look it up.

Fixes part of #10042.
This commit is contained in:
Roman Godov
2018-08-01 13:51:35 +03:00
committed by Tim Abbott
parent 5fafddaef5
commit 5e70577f84
7 changed files with 27 additions and 7 deletions

View File

@@ -52,7 +52,7 @@ function change_notification_setting(setting, setting_data, status_element) {
}
exports.set_up = function () {
if (!page_params.realm_show_digest_email) {
if (!page_params.realm_digest_emails_enabled) {
$("#digest_container").hide();
}