Skip to content

Commit

Permalink
Add close button to PageAlert component.
Browse files Browse the repository at this point in the history
Fix 9374
  • Loading branch information
maliming authored Mar 22, 2024
1 parent c9373c7 commit 36f3fce
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions framework/src/Volo.Abp.BlazoriseUI/Components/PageAlert.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@foreach (var alert in Alerts)
@foreach (var alert in Alerts)
{
<Alert Visible="@alert.IsVisible" Dismisable="@alert.AlertMessage.Dismissible" Color="@GetAlertColor(alert.AlertMessage.Type)">
@if (!string.IsNullOrEmpty(alert.AlertMessage.Title))
Expand All @@ -12,5 +12,9 @@
</Heading>
}
<Paragraph>@alert.AlertMessage.Text</Paragraph>
@if (alert.AlertMessage.Dismissible)
{
<CloseButton />
}
</Alert>
}
}

0 comments on commit 36f3fce

Please sign in to comment.