Fix error displaying when editing groups/clients/domains/lists (#2808)

This commit is contained in:
DL6ER
2023-11-12 14:04:03 +01:00
committed by GitHub
7 changed files with 68 additions and 45 deletions

View File

@@ -113,7 +113,8 @@ function showAlert(type, icon, title, message) {
break;
case "error":
options.icon = "fas fa-times";
options.title = "&nbsp;<strong>Error, something went wrong!</strong><br>";
if (title.length === 0)
options.title = "&nbsp;<strong>Error, something went wrong!</strong><br>";
settings.delay *= 2;
// If the message is an API object, nicely format the error message