Better feedback when changing project settings

We now display a success flash message, and we stay on the same page
(instead of redirecting to the list of bills, which makes little sense)
This commit is contained in:
Baptiste Jonglez 2023-07-28 18:16:00 +02:00
parent 9e1e284175
commit b99248ffa6

View file

@ -429,7 +429,8 @@ def edit_project():
db.session.add(project)
db.session.commit()
return redirect(url_for("main.list_bills"))
flash(_("Project settings have been changed successfully."))
return redirect(url_for("main.edit_project"))
else:
edit_form.name.data = g.project.name