Introduce user preference for toggling HTMX navigation

This commit is contained in:
Jeremy Stretch 2024-03-18 17:02:17 -04:00
parent e735be7167
commit 7d86d0989d
2 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,14 @@ PREFERENCES = {
), ),
default='light', default='light',
), ),
'ui.htmx_navigation': UserPreference(
label=_('HTMX Navigation'),
choices=(
('true', _('Enabled')),
('false', _('Disabled')),
),
default=False
),
'locale.language': UserPreference( 'locale.language': UserPreference(
label=_('Language'), label=_('Language'),
choices=( choices=(

View File

@ -58,6 +58,7 @@ class UserConfigForm(forms.ModelForm, metaclass=UserConfigFormMetaclass):
'pagination.per_page', 'pagination.per_page',
'pagination.placement', 'pagination.placement',
'ui.colormode', 'ui.colormode',
'ui.htmx_navigation',
)), )),
(_('Miscellaneous'), ( (_('Miscellaneous'), (
'data_format', 'data_format',