refactor: Rename enable_marketing_emails_enabled param of page_params.

This is a prep commit to extract the gear menu as a
handlebars template.

We are renaming `enable_marketing_emails_enabled` to
`corporate_enabled` as it will be also used in the
handlebars template of the gear menu.
This commit is contained in:
Riken Shah
2021-06-14 07:07:47 +00:00
committed by Tim Abbott
parent 5fe21ae08f
commit d2f7aaf6f6
2 changed files with 2 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ export function set_enable_digest_emails_visibility() {
}
export function set_enable_marketing_emails_visibility() {
if (page_params.enable_marketing_emails_enabled) {
if (page_params.corporate_enabled) {
$("#enable_marketing_emails_label").parent().show();
} else {
$("#enable_marketing_emails_label").parent().hide();