Skip to content

Commit

Permalink
Fixed #15697 | ConfirmPopup: use Button component
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed May 24, 2024
1 parent 92d222b commit cc060ff
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/app/components/confirmpopup/confirmpopup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,32 +58,30 @@ import { Subscription } from 'rxjs';
</ng-template>
</div>
<div class="p-confirm-popup-footer">
<button
<p-button
type="button"
pButton
[label]="rejectButtonLabel"
(click)="reject()"
[ngClass]="'p-confirm-popup-reject p-button-sm'"
[class]="confirmation?.rejectButtonStyleClass || 'p-button-text'"
[styleClass]="confirmation?.rejectButtonStyleClass || 'p-button-text'"
*ngIf="confirmation?.rejectVisible !== false"
[attr.aria-label]="rejectButtonLabel"
>
<i [class]="confirmation?.rejectIcon" *ngIf="confirmation?.rejectIcon; else rejecticon"></i>
<ng-template #rejecticon *ngTemplateOutlet="rejectIconTemplate"></ng-template>
</button>
<button
</p-button>
<p-button
type="button"
pButton
[label]="acceptButtonLabel"
(click)="accept()"
[ngClass]="'p-confirm-popup-accept p-button-sm'"
[class]="confirmation?.acceptButtonStyleClass"
[styleClass]="confirmation?.acceptButtonStyleClass"
*ngIf="confirmation?.acceptVisible !== false"
[attr.aria-label]="acceptButtonLabel"
>
<i [class]="confirmation?.acceptIcon" *ngIf="confirmation?.acceptIcon; else accepticon"></i>
<ng-template #accepticon *ngTemplateOutlet="acceptIconTemplate"></ng-template>
</button>
</p-button>
</div>
</ng-template>
</div>
Expand Down

0 comments on commit cc060ff

Please sign in to comment.