portal theme setting: missing hook to regen ssowatconf when changing value

This commit is contained in:
Alexandre Aubin 2022-12-07 19:32:57 +01:00
parent 08521882ca
commit 24f25e0033

View file

@ -276,6 +276,11 @@ def trigger_post_change_hook(setting_name, old_value, new_value):
#
# ===========================================
@post_change_hook("portal_theme")
def regen_ssowatconf(setting_name, old_value, new_value):
if old_value != new_value:
from yunohost.app import app_ssowatconf
app_ssowatconf()
@post_change_hook("ssowat_panel_overlay_enabled")
@post_change_hook("nginx_redirect_to_https")