Commit 37af242 [frontend] change flash messages for deleted/cancelled builds

2 files Authored and Committed by dturecek 3 days ago
[frontend] change flash messages for deleted/cancelled builds

    
 1 @@ -439,7 +439,7 @@
 2           flask.flash(str(e), "error")
 3       else:
 4           db.session.commit()
 5 -         flask.flash("Build {} has been canceled successfully.".format(build.id), "success")
 6 +         flask.flash("Build {} has been canceled successfully.".format(build.id))
 7       return flask.redirect(helpers.url_for_copr_builds(build.copr))
 8   
 9   
10 @@ -467,6 +467,6 @@
11           flask.flash(str(e), "error")
12       else:
13           db.session.commit()
14 -         flask.flash("Build has been deleted successfully.", "success")
15 +         flask.flash("Build has been deleted successfully.")
16   
17       return flask.redirect(helpers.url_for_copr_builds(build.copr))
1 @@ -254,6 +254,6 @@
2           flask.flash(str(e), "error")
3       else:
4           db.session.commit()
5 -         flask.flash("Package has been deleted successfully.", "success")
6 +         flask.flash("Package has been deleted successfully.")
7   
8       return flask.redirect(helpers.copr_url("coprs_ns.copr_packages", copr))