<h1 mat-dialog-title>{{'voucher' | i18n}}</h1>
<div mat-dialog-content>
    <p>{{'vouchers.stored-safely' | i18n}}</p>
    <span>{{'vouchers.' + data.type | i18n}}: {{data.code}}</span>
</div>
<div mat-dialog-actions>
    <mat-slide-toggle [(ngModel)]="data.confirmClose">
        {{'vouchers.stored-safely.confirm' | i18n}}
    </mat-slide-toggle>

    <button mat-button (click)="onOkClick()" [disabled]="!data.confirmClose">{{'ok' | i18n}}</button>
</div> 