stay on correct settings tab after reload
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user