mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Stop legend duplication on disable-platform-admin
This commit is contained in:
@@ -209,12 +209,14 @@ def user_profile_disable_platform_admin_view():
|
||||
abort(403)
|
||||
|
||||
form = ServiceOnOffSettingForm(
|
||||
name="Signing in again clears this setting",
|
||||
name="Use platform admin view",
|
||||
enabled=not session.get('disable_platform_admin_view'),
|
||||
truthy='Yes',
|
||||
falsey='No',
|
||||
)
|
||||
|
||||
form.enabled.param_extensions = {"hint": {"text": "Signing in again clears this setting"}}
|
||||
|
||||
if form.validate_on_submit():
|
||||
session['disable_platform_admin_view'] = not form.enabled.data
|
||||
return redirect(url_for('.user_profile'))
|
||||
|
||||
Reference in New Issue
Block a user