Revert logic that assumes all themes use buefy

that just isn't a safe assumption yet..alas
This commit is contained in:
Lance Edgar 2023-01-13 18:10:28 -06:00
parent 83f9a3faa7
commit 0753e956f9

View file

@ -209,9 +209,14 @@ def should_use_buefy(request):
if buefy is not None:
return buefy
# otherwise assume buefy is in effect
# TODO: should not hard-code this surely, but works for now...
if theme == 'falafel':
return True
# TODO: probably should not use this fallback? it was the first setting
# i tested with, but is poorly named to say the least
return request.rattail_config.getbool('tailbone', 'grids.use_buefy', default=False)
def pretty_datetime(config, value):
"""