mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user