-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fa051d
commit c435093
Showing
3 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
35 changes: 26 additions & 9 deletions
35
lib/core/src/lib/dialogs/confirm-dialog/confirm.dialog.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,37 @@ | ||
<h1 mat-dialog-title data-automation-id="adf-confirm-dialog-title">{{ title | translate }}</h1> | ||
<mat-dialog-content> | ||
<div class="adf-confirm-dialog-content"> | ||
<p *ngIf="!htmlContent; else cutomContent" data-automation-id="adf-confirm-dialog-base-message"> | ||
<p *ngIf="!htmlContent; else customContent" data-automation-id="adf-confirm-dialog-base-message"> | ||
{{ message | translate }} | ||
</p> | ||
<ng-template #cutomContent> | ||
<span [innerHTML]="sanitizedHtmlContent()" data-automation-id="adf-confirm-dialog-custom-content"> | ||
</span> | ||
<ng-template #customContent> | ||
<span [innerHTML]="sanitizedHtmlContent()" data-automation-id="adf-confirm-dialog-custom-content"></span> | ||
</ng-template> | ||
</div> | ||
</mat-dialog-content> | ||
<mat-dialog-actions> | ||
<span class="adf-dialog-spacer" data-automation-id="adf-confirm-dialog-spacer"></span> | ||
<button id="adf-confirm-accept" class="adf-confirm-dialog-button" mat-button color="primary" data-automation-id="adf-confirm-dialog-confirmation" | ||
[mat-dialog-close]="true">{{ yesLabel | translate }}</button> | ||
<button id="adf-confirm-all" class="adf-confirm-dialog-button" mat-button *ngIf="thirdOptionLabel" [mat-dialog-close]="thirdOptionLabel" data-automation-id="adf-confirm-dialog-confirm-all">{{ thirdOptionLabel | translate }}</button> | ||
<button id="adf-confirm-cancel" class="adf-confirm-dialog-button" mat-button [mat-dialog-close]="false" data-automation-id="adf-confirm-dialog-reject" | ||
cdkFocusInitial>{{ noLabel | translate }}</button> | ||
<button id="adf-confirm-accept" | ||
class="adf-confirm-dialog-button" | ||
mat-button | ||
color="primary" | ||
data-automation-id="adf-confirm-dialog-confirmation" | ||
[mat-dialog-close]="true"> | ||
{{ yesLabel | translate }} | ||
</button> | ||
<button *ngIf="thirdOptionLabel" | ||
id="adf-confirm-all" | ||
class="adf-confirm-dialog-button" | ||
mat-button | ||
[mat-dialog-close]="thirdOptionLabel" | ||
data-automation-id="adf-confirm-dialog-confirm-all">{{ thirdOptionLabel | translate }} | ||
</button> | ||
<button id="adf-confirm-cancel" | ||
class="adf-confirm-dialog-button" | ||
mat-button | ||
[mat-dialog-close]="false" | ||
data-automation-id="adf-confirm-dialog-reject" | ||
cdkFocusInitial> | ||
{{ noLabel | translate }} | ||
</button> | ||
</mat-dialog-actions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,6 @@ | |
} | ||
|
||
& .adf-confirm-dialog-content { | ||
margin: 0 -24px; | ||
width: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters