Skip to content

Commit

Permalink
Fix messages class names (#14508)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek authored Oct 14, 2023
1 parent 48b350b commit fd156b9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/OrchardCore.Themes/TheAdmin/Views/Message.cshtml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
@{
string type = Model.Type.ToString().ToLowerInvariant();
var bsClassName = type switch
{
"information" => "alert-info",
"error" => "alert-danger",
_ => $"alert-{type}",
};
}
<div class="alert alert-dismissible fade show message-@type alert-@type" role="alert">

<div class="alert alert-dismissible @bsClassName fade show message-@type" role="alert">
@Model.Message
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>

0 comments on commit fd156b9

Please sign in to comment.