mirror of https://github.com/abpframework/abp.git
Browse Source
Simplified the HTML structure of manage-profile and page-alert-container components by reducing unnecessary markup and improving readability. Replaced Angular animation usage in manage-profile with a CSS-based fade-in effect for better maintainability.pull/24579/head
3 changed files with 58 additions and 76 deletions
@ -1,26 +1,12 @@ |
|||||
@for (alert of service.alerts$ | async; track i; let i = $index) { |
@for (alert of service.alerts$ | async; track i; let i = $index) { |
||||
<div |
<div class="alert alert-{{ alert.type }} fade show" [class.alert-dismissible]="alert.dismissible" role="alert"> |
||||
class="alert alert-{{ alert.type }} fade show" |
@if (alert.title) { |
||||
[class.alert-dismissible]="alert.dismissible" [class.fade]="alert.dismissible" [class.show]="alert.dismissible" |
<h4 class="alert-heading" [innerHTML]="alert.title | abpSafeHtml | abpLocalization: alert.titleLocalizationParams"> |
||||
role="alert" |
</h4> |
||||
> |
} |
||||
@if (alert.title) { |
<span [innerHTML]="alert.message | abpSafeHtml | abpLocalization: alert.messageLocalizationParams"></span> |
||||
<h4 |
@if (alert.dismissible) { |
||||
class="alert-heading" |
<button type="button" class="btn-close" data-dismiss="alert" aria-label="Close" (click)="service.remove(i)"></button> |
||||
[innerHTML]="alert.title | abpSafeHtml | abpLocalization: alert.titleLocalizationParams" |
} |
||||
></h4> |
</div> |
||||
} |
} |
||||
<span |
|
||||
[innerHTML]="alert.message | abpSafeHtml | abpLocalization: alert.messageLocalizationParams" |
|
||||
></span> |
|
||||
@if (alert.dismissible) { |
|
||||
<button |
|
||||
type="button" |
|
||||
class="btn-close" |
|
||||
data-dismiss="alert" |
|
||||
aria-label="Close" |
|
||||
(click)="service.remove(i)" |
|
||||
></button> |
|
||||
} |
|
||||
</div> |
|
||||
} |
|
||||
Loading…
Reference in new issue