From a195d30227e86c70990c7ea21020c2062784ce7f Mon Sep 17 00:00:00 2001 From: Tom Brouwer <3687997+tombrouwer@users.noreply.github.com> Date: Wed, 20 Apr 2022 22:04:35 +0200 Subject: [PATCH] Update alerts.ftl Hi, Thanks for your nice project! I learned a lot of it! I saw that you don't apply breaks in the switch. This is necessary. check: https://freemarker.apache.org/docs/ref_directive_switch.html --- theme/keywind/login/components/layout/alerts.ftl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/theme/keywind/login/components/layout/alerts.ftl b/theme/keywind/login/components/layout/alerts.ftl index da6b3f11d..a69526100 100644 --- a/theme/keywind/login/components/layout/alerts.ftl +++ b/theme/keywind/login/components/layout/alerts.ftl @@ -2,12 +2,16 @@ <#switch message.type> <#case "error"> <#assign color="bg-red-100 text-red-600"> + <#break> <#case "info"> <#assign color="bg-blue-100 text-blue-600"> + <#break> <#case "success"> <#assign color="bg-green-100 text-green-600"> + <#break> <#case "warning"> <#assign color="bg-orange-100 text-orange-600"> + <#break> <#default> <#assign color="bg-blue-100 text-blue-600">