summaryrefslogtreecommitdiff
path: root/includes/desktop/components
diff options
context:
space:
mode:
authorJonas Kohl2024-12-26 11:11:25 +0100
committerJonas Kohl2024-12-26 11:11:25 +0100
commit9f89384166b4b7b953a3c4aa5748d8f735859113 (patch)
tree05acddfad422fcbf8f550d0d6cdbc4ad45459530 /includes/desktop/components
parent82cd8a07329869be48c53cc61e1638cd2a192ec2 (diff)
Error handling
Diffstat (limited to 'includes/desktop/components')
-rw-r--r--includes/desktop/components/alert.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/desktop/components/alert.php b/includes/desktop/components/alert.php
index a47b99b..0077f18 100644
--- a/includes/desktop/components/alert.php
+++ b/includes/desktop/components/alert.php
@@ -4,6 +4,7 @@ function c_alert(string $html_message, string $type, ?string $icon = null): void
"warning" => ["olive","yellow"],
"success" => ["green","lime"],
"info" => ["teal","aqua"],
+ "danger" => ["maroon","pink"],
][$type] ?? ["gray","white"];
if ($icon !== null)
$icon = [