mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Add flash messages for TO_FLASH items in instances endpoint
This commit is contained in:
parent
18511d5514
commit
c09a6d2738
1 changed files with 8 additions and 0 deletions
|
|
@ -820,6 +820,14 @@ def instances():
|
|||
|
||||
manage_bunkerweb("instances", request.form["INSTANCE_ID"], operation=request.form["operation"])
|
||||
|
||||
for f in app.config["TO_FLASH"]:
|
||||
if f["type"] == "error":
|
||||
flash(f["content"], "error")
|
||||
else:
|
||||
flash(f["content"])
|
||||
|
||||
app.config["TO_FLASH"].clear()
|
||||
|
||||
return redirect(url_for("instances"))
|
||||
|
||||
# Display instances
|
||||
|
|
|
|||
Loading…
Reference in a new issue