- Implemented ConfirmModalComponent and ConfirmDeleteModalComponent for confirmation dialogs. - Added modal service methods to open confirm and confirm delete modals. - Created corresponding HTML and SCSS files for both modal components. - Updated ReutilizablesTestPageComponent to utilize new modals. - Enhanced modal service tests to cover new functionality. - Refactored existing tests to accommodate changes in modal behavior and structure.
13 lines
331 B
HTML
13 lines
331 B
HTML
<div class="confirm-modal">
|
|
<p class="confirm-modal__content">{{ data.content }}</p>
|
|
|
|
<div class="confirm-modal__actions">
|
|
<app-button variant="secondary" (click)="cancel()">
|
|
{{ data.cancelLabel }}
|
|
</app-button>
|
|
<app-button (click)="confirm()">
|
|
{{ data.confirmLabel }}
|
|
</app-button>
|
|
</div>
|
|
</div>
|