Skip to content

Commit 8fcad51

Browse files
committed
ngIf eda-dialog2
1 parent 69e5193 commit 8fcad51

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

eda/eda_app/src/app/shared/components/eda-dialogs/eda-dialog2/eda-dialog2.component.html

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
[style]="{width, height}"
1313
appendTo="body">
1414

15-
<ng-template pTemplate="header" *ngIf="!header">
16-
<ng-content select="[header]"></ng-content>
17-
</ng-template>
15+
@if(!header){
16+
<ng-template pTemplate="header">
17+
<ng-content select="[header]"></ng-content>
18+
</ng-template>
19+
}
1820

1921
<ng-template pTemplate="content">
2022
<div #contentWrapper>
@@ -27,10 +29,12 @@
2729
<div class="flex justify-end p-2 border-t gap-1.5">
2830
<ng-content select="[footer]"></ng-content>
2931

30-
<button *ngIf="ifShowClose" class="cancel-button" (click)="onClose()">
31-
<i class="fa fa-times"></i>
32-
<span i18n="@@cancelarBtn">Cancelar</span>
33-
</button>
32+
@if(ifShowClose){
33+
<button class="cancel-button" (click)="onClose()">
34+
<i class="fa fa-times"></i>
35+
<span i18n="@@cancelarBtn">Cancelar</span>
36+
</button>
37+
}
3438

3539
@if(ifShowReset){
3640
<button class="execute-button" (click)="onReset()">
@@ -59,9 +63,11 @@
5963
</button>
6064
}
6165

62-
<button *ngIf="ifShowApply" class="confirm-button" [disabled]="disableApply" (click)="onApply()">
63-
<i class="fa fa-check"></i> <span i18n="@@guardarBtn">Confirmar</span>
64-
</button>
66+
@if(ifShowApply){
67+
<button class="confirm-button" [disabled]="disableApply" (click)="onApply()">
68+
<i class="fa fa-check"></i> <span i18n="@@guardarBtn">Confirmar</span>
69+
</button>
70+
}
6571
</div>
6672
</ng-template>
6773

0 commit comments

Comments
 (0)