Refactor service conversion message to include the converted service type

This commit is contained in:
Théophile Diot 2024-10-23 10:55:17 +02:00
parent 3a6caf1644
commit e4c17ec988
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -86,7 +86,7 @@ def services_convert():
DATA["TO_FLASH"].append({"content": ret, "type": "error"})
DATA.update({"RELOADING": False, "CONFIG_CHANGED": False})
return
DATA["TO_FLASH"].append({"content": f"Converted services: {', '.join(services_to_convert)}", "type": "success"})
DATA["TO_FLASH"].append({"content": f"Converted to \"{convert_to.title()}\" services: {', '.join(services_to_convert)}", "type": "success"})
DATA["RELOADING"] = False
DATA.update({"RELOADING": True, "LAST_RELOAD": time(), "CONFIG_CHANGED": True})