Skip to content

Commit

Permalink
[alerts] Use break in switch (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukin committed Apr 20, 2022
2 parents fef457a + a195d30 commit b86e947
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions theme/keywind/login/components/layout/alerts.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -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">
</#switch>
Expand Down

0 comments on commit b86e947

Please sign in to comment.