diff --git a/netbox/netbox/preferences.py b/netbox/netbox/preferences.py index 9a6fe490c..1cd96a57c 100644 --- a/netbox/netbox/preferences.py +++ b/netbox/netbox/preferences.py @@ -23,6 +23,14 @@ PREFERENCES = { ), default='light', ), + 'ui.htmx_navigation': UserPreference( + label=_('HTMX Navigation'), + choices=( + ('true', _('Enabled')), + ('false', _('Disabled')), + ), + default=False + ), 'locale.language': UserPreference( label=_('Language'), choices=( diff --git a/netbox/users/forms/model_forms.py b/netbox/users/forms/model_forms.py index 6c717d1ea..6bbcccb53 100644 --- a/netbox/users/forms/model_forms.py +++ b/netbox/users/forms/model_forms.py @@ -58,6 +58,7 @@ class UserConfigForm(forms.ModelForm, metaclass=UserConfigFormMetaclass): 'pagination.per_page', 'pagination.placement', 'ui.colormode', + 'ui.htmx_navigation', )), (_('Miscellaneous'), ( 'data_format',