mirror of https://github.com/zulip/zulip.git
stream_settings: Fix upgrade text in stream edit panel.
The upgrade text shown for message retention setting for realms on limited plans should mention about sponsorship only for non-business orgs. In the stream edit panel, the sponsorship text was present even for non-business orgs because the is_business_type_org parameter was not being passed to the template, so this commit fixes the code to pass the is_busines_type_org parameter correctly to the template.
This commit is contained in:
parent
90566ab772
commit
0bc61281df
|
@ -211,6 +211,8 @@ export function show_settings_for(node) {
|
|||
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,
|
||||
is_business_type_org:
|
||||
page_params.realm_org_type === settings_config.all_org_type_values.business.code,
|
||||
is_admin: page_params.is_admin,
|
||||
org_level_message_retention_setting: get_display_text_for_realm_message_retention_setting(),
|
||||
});
|
||||
|
|
|
@ -58,6 +58,7 @@
|
|||
stream_privacy_policy=../stream_privacy_policy
|
||||
zulip_plan_is_not_limited=../zulip_plan_is_not_limited
|
||||
upgrade_text_for_wide_organization_logo=../upgrade_text_for_wide_organization_logo
|
||||
is_business_type_org=../is_business_type_org
|
||||
org_level_message_retention_setting=../org_level_message_retention_setting
|
||||
is_stream_edit=true }}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue