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',
),
'ui.htmx_navigation': UserPreference(
label=_('HTMX Navigation'),
choices=(
('true', _('Enabled')),
('false', _('Disabled')),
),
default=False
),
'locale.language': UserPreference(
label=_('Language'),
choices=(

View File

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