mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
added feature flag
This commit is contained in:
@@ -172,15 +172,15 @@ def _csp(config):
|
||||
|
||||
|
||||
def create_app(application):
|
||||
# @application.context_processor
|
||||
# def inject_feature_flags():
|
||||
@application.context_processor
|
||||
def inject_feature_flags():
|
||||
# this is where feature flags can be easily added as a dictionary within context
|
||||
# feature_about_page_enabled = application.config.get(
|
||||
# "FEATURE_ABOUT_PAGE_ENABLED", False
|
||||
# )
|
||||
# return dict(
|
||||
# FEATURE_ABOUT_PAGE_ENABLED=feature_about_page_enabled,
|
||||
# )
|
||||
feature_socket_enabled = application.config.get(
|
||||
"FEATURE_SOCKET_ENABLED", False
|
||||
)
|
||||
return dict(
|
||||
FEATURE_SOCKET_ENABLED=feature_socket_enabled,
|
||||
)
|
||||
|
||||
@application.context_processor
|
||||
def inject_initial_signin_url():
|
||||
|
||||
Reference in New Issue
Block a user