mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-30 01:38:50 +00:00
Removing autofocus from dialog
This commit is contained in:
parent
87d9144f1e
commit
612d0dbe1f
@ -8,7 +8,8 @@ export class ProgressDialogService {
|
||||
|
||||
public open() {
|
||||
const ref = this.dialog.open(ProgressDialogComponent, {
|
||||
width: '250px'
|
||||
width: '250px',
|
||||
autoFocus: false
|
||||
});
|
||||
return ref;
|
||||
}
|
||||
|
@ -26,7 +26,8 @@ export class DeleteTemplateComponent {
|
||||
height: '250px',
|
||||
data: {
|
||||
templateName: templateName
|
||||
}
|
||||
},
|
||||
autoFocus: false
|
||||
});
|
||||
|
||||
dialogRef.afterClosed().subscribe((answer: boolean) => {
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -83,7 +83,8 @@ export class AddBlankProjectDialogComponent implements OnInit {
|
||||
height: '150px',
|
||||
data: {
|
||||
existingProject: existingProject
|
||||
}
|
||||
},
|
||||
autoFocus: false
|
||||
});
|
||||
|
||||
dialogRef.afterClosed().subscribe((answer: boolean) => {
|
||||
|
@ -106,7 +106,8 @@ export class ImportProjectDialogComponent implements OnInit {
|
||||
height: '150px',
|
||||
data: {
|
||||
existingProject: existingProject
|
||||
}
|
||||
},
|
||||
autoFocus: false
|
||||
});
|
||||
|
||||
dialogRef.afterClosed().subscribe((answer: boolean) => {
|
||||
|
@ -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;
|
||||
|
@ -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 => {
|
||||
|
@ -34,7 +34,8 @@ export class SnapshotMenuItemComponent implements OnInit {
|
||||
data: {
|
||||
server: this.server,
|
||||
project: this.project
|
||||
}
|
||||
},
|
||||
autoFocus: false
|
||||
});
|
||||
|
||||
dialogRef.afterClosed().subscribe(snapshot => {
|
||||
|
@ -24,7 +24,8 @@ export class TemplateComponent implements OnInit {
|
||||
height: '560px',
|
||||
data: {
|
||||
server: this.server
|
||||
}
|
||||
},
|
||||
autoFocus: false
|
||||
});
|
||||
|
||||
dialogRef.afterClosed().subscribe((template: Template) => {
|
||||
|
Loading…
Reference in New Issue
Block a user