autofocus 'OK' on project dialogs

This commit is contained in:
Maximilian Krambach 2019-02-14 11:55:40 +01:00
parent 98dc105f46
commit 69d5d244cb
2 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ export class ProjectionDialogService {
ProjectionDialogReturnType
>(ProjectionDialogComponent, {
maxHeight: '90vh',
autoFocus: false,
data: descriptor
});
const response = await dialogRef.afterClosed().toPromise();

View File

@ -38,6 +38,6 @@
</div>
</mat-dialog-content>
<mat-dialog-actions>
<button mat-button (click)="onOk()" color="primary" translate>OK</button>
<button mat-button osAutofocus (click)="onOk()" color="primary" translate>OK</button>
<button mat-button (click)="onCancel()" translate>Cancel</button>
</mat-dialog-actions>