Removing autofocus from dialog

This commit is contained in:
Piotr Pekala 2019-03-04 04:36:13 -08:00
parent 87d9144f1e
commit 612d0dbe1f
10 changed files with 22 additions and 11 deletions

View File

@ -8,7 +8,8 @@ export class ProgressDialogService {
public open() {
const ref = this.dialog.open(ProgressDialogComponent, {
width: '250px'
width: '250px',
autoFocus: false
});
return ref;
}

View File

@ -26,7 +26,8 @@ export class DeleteTemplateComponent {
height: '250px',
data: {
templateName: templateName
}
},
autoFocus: false
});
dialogRef.afterClosed().subscribe((answer: boolean) => {

View File

@ -20,7 +20,8 @@ export class EditStyleActionComponent implements OnInit {
editStyle() {
const dialogRef = this.dialog.open(StyleEditorDialogComponent, {
width: '300px'
width: '300px',
autoFocus: false
});
let instance = dialogRef.componentInstance;
instance.server = this.server;

View File

@ -20,7 +20,8 @@ export class EditTextActionComponent implements OnInit {
editText() {
const dialogRef = this.dialog.open(TextEditorDialogComponent, {
width: '300px'
width: '300px',
autoFocus: false
});
let instance = dialogRef.componentInstance;
instance.server = this.server;

View File

@ -83,7 +83,8 @@ export class AddBlankProjectDialogComponent implements OnInit {
height: '150px',
data: {
existingProject: existingProject
}
},
autoFocus: false
});
dialogRef.afterClosed().subscribe((answer: boolean) => {

View File

@ -106,7 +106,8 @@ export class ImportProjectDialogComponent implements OnInit {
height: '150px',
data: {
existingProject: existingProject
}
},
autoFocus: false
});
dialogRef.afterClosed().subscribe((answer: boolean) => {

View File

@ -109,7 +109,8 @@ export class ProjectsComponent implements OnInit {
addBlankProject() {
const dialogRef = this.dialog.open(AddBlankProjectDialogComponent, {
width: '400px'
width: '400px',
autoFocus: false
});
let instance = dialogRef.componentInstance;
instance.server = this.server;
@ -117,7 +118,8 @@ export class ProjectsComponent implements OnInit {
importProject() {
const dialogRef = this.dialog.open(ImportProjectDialogComponent, {
width: '400px'
width: '400px',
autoFocus: false
});
let instance = dialogRef.componentInstance;
instance.server = this.server;

View File

@ -69,7 +69,8 @@ export class ServersComponent implements OnInit, OnDestroy {
createModal() {
const dialogRef = this.dialog.open(AddServerDialogComponent, {
width: '350px'
width: '350px',
autoFocus: false
});
dialogRef.afterClosed().subscribe(server => {

View File

@ -34,7 +34,8 @@ export class SnapshotMenuItemComponent implements OnInit {
data: {
server: this.server,
project: this.project
}
},
autoFocus: false
});
dialogRef.afterClosed().subscribe(snapshot => {

View File

@ -24,7 +24,8 @@ export class TemplateComponent implements OnInit {
height: '560px',
data: {
server: this.server
}
},
autoFocus: false
});
dialogRef.afterClosed().subscribe((template: Template) => {