add setting UI_NEXT

TODO toggle banner when UI_NEXT is set
This commit is contained in:
Hao Liu
2023-03-07 20:01:33 -05:00
parent 1e1bee74b2
commit c312351134
2 changed files with 12 additions and 0 deletions

View File

@@ -775,6 +775,16 @@ register(
help_text=_('Indicates whether the instance is part of a kubernetes-based deployment.'),
)
register(
'UI_NEXT',
field_class=fields.BooleanField,
default=False,
label=_('Enable Next Generation User Interface'),
help_text=_('Enable the next generation user interface.'),
category=_('System'),
category_slug='system',
)
def logging_validate(serializer, attrs):
if not serializer.instance or not hasattr(serializer.instance, 'LOG_AGGREGATOR_HOST') or not hasattr(serializer.instance, 'LOG_AGGREGATOR_TYPE'):

View File

@@ -1017,3 +1017,5 @@ AWX_MOUNT_ISOLATED_PATHS_ON_K8S = False
# This is overridden downstream via /etc/tower/conf.d/cluster_host_id.py
CLUSTER_HOST_ID = socket.gethostname()
UI_NEXT = True