Skip to content

Commit

Permalink
ACS-8104 fix buttons alighment
Browse files Browse the repository at this point in the history
  • Loading branch information
DaryaBalvanovich committed Jun 5, 2024
1 parent 78a9dee commit 4b34f8b
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions lib/core/src/lib/dialogs/dialog/dialog.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,23 @@ <h2 class="adf-dialog-title">{{ data.title | translate }}</h2>
class="adf-dialog-actions"
[ngClass]="{ 'adf-additional-actions': data.actionsTemplate || additionalActionButtons }"
>
<div *ngIf="!additionalActionButtons && data.actionsTemplate">
<ng-container [ngTemplateOutlet]="data.actionsTemplate"></ng-container>
</div>
<div>

<div *ngIf="!data.actionsTemplate && additionalActionButtons">
<button
*ngFor="let additionalButton of additionalActionButtons"
mat-button
color="primary"
class="{{ additionalButton.class }}"
(click)="additionalButton.onClick()"
>
{{ additionalButton.title | translate }}
</button>
<ng-container *ngIf="!additionalActionButtons && data.actionsTemplate">
<ng-container [ngTemplateOutlet]="data.actionsTemplate"></ng-container>
</ng-container>

<ng-container *ngIf="!data.actionsTemplate && additionalActionButtons">
<button
*ngFor="let additionalButton of additionalActionButtons"
mat-button
color="primary"
class="{{ additionalButton.class }}"
(click)="additionalButton.onClick()"
>
{{ additionalButton.title | translate }}
</button>
</ng-container>
</div>

<div>
Expand Down

0 comments on commit 4b34f8b

Please sign in to comment.