Aug 7 - Update new design as default

This commit is contained in:
2026-08-07 11:24:22 -04:00
parent b12c019810
commit 16d5e8a6fa
6 changed files with 101 additions and 9 deletions
+3 -2
View File
@@ -16,7 +16,7 @@ layout shell base.html extends.
import logging
from flask import (Blueprint, render_template, redirect, request,
url_for, flash)
url_for, flash, current_app)
from flask_login import login_required, current_user
from sqlalchemy import func
@@ -51,7 +51,8 @@ def switch_theme():
flash('Unknown design option.', 'warning')
return redirect(_safe_next(request.form.get('next')))
previous = current_user.ui_theme or 'classic'
previous = current_user.ui_theme or current_app.config.get(
'DEFAULT_UI_THEME', 'modern')
if previous != theme:
current_user.ui_theme = theme
db.session.commit()