redo Status SetMessage so it defaults to success and danger is a force in the setting of the message, to fix BUG-52 where a success message ended up with danger colour somehow -- might not perfectly fix it, but its neater and if it does not fix it, then its a timing issue I am not sure how to test/fix
This commit is contained in:
@@ -97,8 +97,7 @@ def settings():
|
||||
db.session.commit()
|
||||
return redirect( '/settings' )
|
||||
except SQLAlchemyError as e:
|
||||
st.SetAlert( "danger" )
|
||||
st.SetMessage( "<b>Failed to modify Setting:</b> {}".format(e.orig) )
|
||||
st.SetMessage( f"<b>Failed to modify Setting:</b> {e.orig}", "danger" )
|
||||
return render_template("settings.html", form=form, page_title=page_title, HELP=HELP)
|
||||
else:
|
||||
form = SettingsForm( obj=Settings.query.first() )
|
||||
|
||||
Reference in New Issue
Block a user