<h1 [class.limit-title]="limitTitle" mat-dialog-title>{{dialogRef.componentInstance.dialogTitle}}</h1>
<div class="fl-dialog overflow-hidden" #dialogContainer mat-dialog-content
     [class.unlimited-width]="unlimitedWidth !== false"
     [class.vertical-scroll]="showScrollbar">
  <div>
    <app-fl-backdrop *ngIf="dialogRef.componentInstance.loading" overlayParent></app-fl-backdrop>
    <ng-container *ngTemplateOutlet="dialogContent"></ng-container>
  </div>
</div>
<div mat-dialog-actions>
  <button mat-button *ngIf="addCancelDialogButton"
          [disabled]="dialogRef.componentInstance.loading"
          (click)="closeDialog()" i18n>Cancel</button>
  <ng-container *ngIf="dialogRef.componentInstance.dialogActions">
    <ng-container *ngFor="let action of dialogRef.componentInstance.dialogActions">
      <button *ngIf="action.type !== actionTypes.RouterLinkAction" mat-button
              (click)="action.execute(notificationService, refreshService,$event)"
              [disabled]="action.noPermissions || action.isRunning || action.disabled ||
              dialogRef.componentInstance.loading ||
              (!action.ignoreFormInvalidity && dialogRef.componentInstance?.dialogForm?.invalid)"
              [class.mat-primary]="action.primary">
        {{action.name}}
      </button>
    </ng-container>
  </ng-container>
</div>
