mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 07:43:35 -05:00
add setting UI_NEXT
TODO toggle banner when UI_NEXT is set
This commit is contained in:
@@ -775,6 +775,16 @@ register(
|
|||||||
help_text=_('Indicates whether the instance is part of a kubernetes-based deployment.'),
|
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):
|
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'):
|
if not serializer.instance or not hasattr(serializer.instance, 'LOG_AGGREGATOR_HOST') or not hasattr(serializer.instance, 'LOG_AGGREGATOR_TYPE'):
|
||||||
|
|||||||
@@ -1017,3 +1017,5 @@ AWX_MOUNT_ISOLATED_PATHS_ON_K8S = False
|
|||||||
|
|
||||||
# This is overridden downstream via /etc/tower/conf.d/cluster_host_id.py
|
# This is overridden downstream via /etc/tower/conf.d/cluster_host_id.py
|
||||||
CLUSTER_HOST_ID = socket.gethostname()
|
CLUSTER_HOST_ID = socket.gethostname()
|
||||||
|
|
||||||
|
UI_NEXT = True
|
||||||
|
|||||||
Reference in New Issue
Block a user