From 12504075ee32aa50fcaa2472dabec7bd5fe9f901 Mon Sep 17 00:00:00 2001 From: Pragati Agrawal Date: Fri, 8 May 2020 17:00:34 +0530 Subject: [PATCH] org settings: Rename plan_includes_wide_organization_logo to more generic. It's a preliminary step to enable message_retention_setting in org settings UI, which is a non-limited plan only feature. So we require a page_param property that tells us the limited-plan state of the Zulip realm. --- static/js/admin.js | 2 +- static/js/settings_org.js | 2 +- static/templates/settings/realm-logo-widget.hbs | 2 +- static/templates/settings/upgrade_tip_widget.hbs | 2 +- zerver/lib/events.py | 4 ++-- zerver/tests/test_events.py | 4 ++-- zerver/tests/test_home.py | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/static/js/admin.js b/static/js/admin.js index cf659f8a78..17429e32fd 100644 --- a/static/js/admin.js +++ b/static/js/admin.js @@ -75,7 +75,7 @@ exports.build_page = function () { realm_digest_weekday: page_params.realm_digest_weekday, show_email: settings_data.show_email(), development: page_params.development_environment, - plan_includes_wide_organization_logo: page_params.plan_includes_wide_organization_logo, + zulip_plan_is_not_limited: page_params.zulip_plan_is_not_limited, upgrade_text_for_wide_organization_logo: page_params.upgrade_text_for_wide_organization_logo, realm_default_external_accounts: page_params.realm_default_external_accounts, diff --git a/static/js/settings_org.js b/static/js/settings_org.js index d181546ed9..2583f91430 100644 --- a/static/js/settings_org.js +++ b/static/js/settings_org.js @@ -989,7 +989,7 @@ exports.build_page = function () { }); } - if (page_params.plan_includes_wide_organization_logo) { + if (page_params.zulip_plan_is_not_limited) { realm_logo.build_realm_logo_widget(upload_realm_logo, false); realm_logo.build_realm_logo_widget(upload_realm_logo, true); } diff --git a/static/templates/settings/realm-logo-widget.hbs b/static/templates/settings/realm-logo-widget.hbs index 95f721b4a1..9deebc4c1f 100644 --- a/static/templates/settings/realm-logo-widget.hbs +++ b/static/templates/settings/realm-logo-widget.hbs @@ -7,7 +7,7 @@ {{#if is_admin}}
- {{#if plan_includes_wide_organization_logo}} + {{#if zulip_plan_is_not_limited}}