Skip to content

Commit

Permalink
chore(feature flag): remove FF_NEW_BRANDING (#1963)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewleith authored Oct 3, 2024
1 parent 5618951 commit dd44169
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class Config(object):
EXTRA_ROUTES = [item for sublist in map(lambda x: x.values(), GC_ARTICLES_ROUTES.values()) for item in sublist]

# FEATURE FLAGS
FF_NEW_BRANDING = env.bool("FF_NEW_BRANDING", False)
FF_SALESFORCE_CONTACT = env.bool("FF_SALESFORCE_CONTACT", True)
FF_TOU = env.bool("FF_TOU", False)

Expand Down Expand Up @@ -219,7 +218,6 @@ class Test(Development):
FF_BOUNCE_RATE_V15 = True
FF_BOUNCE_RATE_BACKEND = True
FF_ABTEST_SERVICE_ID = ""
FF_NEW_BRANDING = True
FF_TOU = True


Expand Down Expand Up @@ -252,7 +250,6 @@ class ProductionFF(Config):
FF_BOUNCE_RATE_V15 = True
FF_BOUNCE_RATE_BACKEND = True
FF_ABTEST_SERVICE_ID = ""
FF_NEW_BRANDING = True
FF_TOU = False


Expand Down
3 changes: 1 addition & 2 deletions app/templates/views/service-settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,13 @@ <h2 class="heading-small p-0 m-0">{{ _('Your service is in trial mode') }}</h2>
}}
{% endcall %}
{% call settings_row(if_has_permission='email') %}
{% set branding_route = '.view_branding_settings' if config["FF_NEW_BRANDING"] or current_user.platform_admin else '.branding_request' %}
{% set txt = _('Email branding') %}
{{ text_field(txt) }}
{% set value = _('Your branding<br> ({})') %}
{{ text_field(value.format(current_service.email_branding_name)|safe if current_service.email_branding else _(current_service.email_branding_name)) }}
{{ edit_field(
change_txt,
url_for(branding_route, service_id=current_service.id),
url_for('.view_branding_settings', service_id=current_service.id),
permissions=['manage_service'],
attributes="data-testid=edit-email-branding",
for=txt
Expand Down

0 comments on commit dd44169

Please sign in to comment.