mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-01 15:00:49 +00:00
Removing autofocus from dialog
This commit is contained in:
parent
87d9144f1e
commit
612d0dbe1f
@ -8,7 +8,8 @@ export class ProgressDialogService {
|
|||||||
|
|
||||||
public open() {
|
public open() {
|
||||||
const ref = this.dialog.open(ProgressDialogComponent, {
|
const ref = this.dialog.open(ProgressDialogComponent, {
|
||||||
width: '250px'
|
width: '250px',
|
||||||
|
autoFocus: false
|
||||||
});
|
});
|
||||||
return ref;
|
return ref;
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,8 @@ export class DeleteTemplateComponent {
|
|||||||
height: '250px',
|
height: '250px',
|
||||||
data: {
|
data: {
|
||||||
templateName: templateName
|
templateName: templateName
|
||||||
}
|
},
|
||||||
|
autoFocus: false
|
||||||
});
|
});
|
||||||
|
|
||||||
dialogRef.afterClosed().subscribe((answer: boolean) => {
|
dialogRef.afterClosed().subscribe((answer: boolean) => {
|
||||||
|
@ -20,7 +20,8 @@ export class EditStyleActionComponent implements OnInit {
|
|||||||
|
|
||||||
editStyle() {
|
editStyle() {
|
||||||
const dialogRef = this.dialog.open(StyleEditorDialogComponent, {
|
const dialogRef = this.dialog.open(StyleEditorDialogComponent, {
|
||||||
width: '300px'
|
width: '300px',
|
||||||
|
autoFocus: false
|
||||||
});
|
});
|
||||||
let instance = dialogRef.componentInstance;
|
let instance = dialogRef.componentInstance;
|
||||||
instance.server = this.server;
|
instance.server = this.server;
|
||||||
|
@ -20,7 +20,8 @@ export class EditTextActionComponent implements OnInit {
|
|||||||
|
|
||||||
editText() {
|
editText() {
|
||||||
const dialogRef = this.dialog.open(TextEditorDialogComponent, {
|
const dialogRef = this.dialog.open(TextEditorDialogComponent, {
|
||||||
width: '300px'
|
width: '300px',
|
||||||
|
autoFocus: false
|
||||||
});
|
});
|
||||||
let instance = dialogRef.componentInstance;
|
let instance = dialogRef.componentInstance;
|
||||||
instance.server = this.server;
|
instance.server = this.server;
|
||||||
|
@ -83,7 +83,8 @@ export class AddBlankProjectDialogComponent implements OnInit {
|
|||||||
height: '150px',
|
height: '150px',
|
||||||
data: {
|
data: {
|
||||||
existingProject: existingProject
|
existingProject: existingProject
|
||||||
}
|
},
|
||||||
|
autoFocus: false
|
||||||
});
|
});
|
||||||
|
|
||||||
dialogRef.afterClosed().subscribe((answer: boolean) => {
|
dialogRef.afterClosed().subscribe((answer: boolean) => {
|
||||||
|
@ -106,7 +106,8 @@ export class ImportProjectDialogComponent implements OnInit {
|
|||||||
height: '150px',
|
height: '150px',
|
||||||
data: {
|
data: {
|
||||||
existingProject: existingProject
|
existingProject: existingProject
|
||||||
}
|
},
|
||||||
|
autoFocus: false
|
||||||
});
|
});
|
||||||
|
|
||||||
dialogRef.afterClosed().subscribe((answer: boolean) => {
|
dialogRef.afterClosed().subscribe((answer: boolean) => {
|
||||||
|
@ -109,7 +109,8 @@ export class ProjectsComponent implements OnInit {
|
|||||||
|
|
||||||
addBlankProject() {
|
addBlankProject() {
|
||||||
const dialogRef = this.dialog.open(AddBlankProjectDialogComponent, {
|
const dialogRef = this.dialog.open(AddBlankProjectDialogComponent, {
|
||||||
width: '400px'
|
width: '400px',
|
||||||
|
autoFocus: false
|
||||||
});
|
});
|
||||||
let instance = dialogRef.componentInstance;
|
let instance = dialogRef.componentInstance;
|
||||||
instance.server = this.server;
|
instance.server = this.server;
|
||||||
@ -117,7 +118,8 @@ export class ProjectsComponent implements OnInit {
|
|||||||
|
|
||||||
importProject() {
|
importProject() {
|
||||||
const dialogRef = this.dialog.open(ImportProjectDialogComponent, {
|
const dialogRef = this.dialog.open(ImportProjectDialogComponent, {
|
||||||
width: '400px'
|
width: '400px',
|
||||||
|
autoFocus: false
|
||||||
});
|
});
|
||||||
let instance = dialogRef.componentInstance;
|
let instance = dialogRef.componentInstance;
|
||||||
instance.server = this.server;
|
instance.server = this.server;
|
||||||
|
@ -69,7 +69,8 @@ export class ServersComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
createModal() {
|
createModal() {
|
||||||
const dialogRef = this.dialog.open(AddServerDialogComponent, {
|
const dialogRef = this.dialog.open(AddServerDialogComponent, {
|
||||||
width: '350px'
|
width: '350px',
|
||||||
|
autoFocus: false
|
||||||
});
|
});
|
||||||
|
|
||||||
dialogRef.afterClosed().subscribe(server => {
|
dialogRef.afterClosed().subscribe(server => {
|
||||||
|
@ -34,7 +34,8 @@ export class SnapshotMenuItemComponent implements OnInit {
|
|||||||
data: {
|
data: {
|
||||||
server: this.server,
|
server: this.server,
|
||||||
project: this.project
|
project: this.project
|
||||||
}
|
},
|
||||||
|
autoFocus: false
|
||||||
});
|
});
|
||||||
|
|
||||||
dialogRef.afterClosed().subscribe(snapshot => {
|
dialogRef.afterClosed().subscribe(snapshot => {
|
||||||
|
@ -24,7 +24,8 @@ export class TemplateComponent implements OnInit {
|
|||||||
height: '560px',
|
height: '560px',
|
||||||
data: {
|
data: {
|
||||||
server: this.server
|
server: this.server
|
||||||
}
|
},
|
||||||
|
autoFocus: false
|
||||||
});
|
});
|
||||||
|
|
||||||
dialogRef.afterClosed().subscribe((template: Template) => {
|
dialogRef.afterClosed().subscribe((template: Template) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user