stay on correct settings tab after reload

This commit is contained in:
2025-05-26 10:39:39 +02:00
parent 86cc6bbff2
commit 506964c773
5 changed files with 74 additions and 35 deletions

View File

@@ -331,9 +331,11 @@ def init_routes(main_bp):
return redirect(url_for('main.dashboard'))
site_settings = SiteSettings.get_settings()
active_tab = request.args.get('tab', 'colors')
return render_template('settings/settings.html',
primary_color=site_settings.primary_color,
secondary_color=site_settings.secondary_color)
secondary_color=site_settings.secondary_color,
active_tab=active_tab)
@main_bp.route('/settings/colors', methods=['POST'])
@login_required