Browse Source

Merge pull request #19388 from abpframework/maliming-patch-3

Add `close button` to `PageAlert` component.
pull/19389/head
liangshiwei 2 years ago
committed by GitHub
parent
commit
f50cbc6b85
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 8
      framework/src/Volo.Abp.BlazoriseUI/Components/PageAlert.razor

8
framework/src/Volo.Abp.BlazoriseUI/Components/PageAlert.razor

@ -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))
@ -12,5 +12,9 @@
</Heading>
}
<Paragraph>@alert.AlertMessage.Text</Paragraph>
@if (alert.AlertMessage.Dismissible)
{
<CloseButton />
}
</Alert>
}
}

Loading…
Cancel
Save