mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 04:59:37 -04:00
Fixing feature flag
This commit is contained in:
@@ -25,9 +25,7 @@ from app.utils.user import user_is_logged_in
|
||||
def check_feature_flags():
|
||||
# Placeholder for future feature flag checks
|
||||
# Example:
|
||||
if request.path.startswith("/jobs") and not current_app.config.get(
|
||||
"FEATURE_SOCKET_ENABLED", False
|
||||
):
|
||||
if "/jobs" in request.path and not current_app.config.get("FEATURE_SOCKET_ENABLED", False):
|
||||
abort(404)
|
||||
pass
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
{% block maincolumn_content %}
|
||||
|
||||
{{ page_header("Message status") }}
|
||||
<div data-job-id="{{ job.id }}" data-feature="{{FEATURE_SOCKET_ENABLED}}">
|
||||
<div data-job-id="{{ job.id }}" data-feature="{{FEATURE_SOCKET_ENABLED | lower}}">
|
||||
{% if not job.finished_processing %}
|
||||
<div
|
||||
data-resource="{{ updates_url }}"
|
||||
|
||||
Reference in New Issue
Block a user