mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-20 15:40:29 +00:00
Disable click outside of angular material dialog area to close the dialog
This commit is contained in:
@ -702,7 +702,8 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
||||
addNewProject() {
|
||||
const dialogRef = this.dialog.open(AddBlankProjectDialogComponent, {
|
||||
width: '400px',
|
||||
autoFocus: false
|
||||
autoFocus: false,
|
||||
disableClose: true
|
||||
});
|
||||
let instance = dialogRef.componentInstance;
|
||||
instance.server = this.server;
|
||||
@ -711,7 +712,8 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
||||
saveProject() {
|
||||
const dialogRef = this.dialog.open(SaveProjectDialogComponent, {
|
||||
width: '400px',
|
||||
autoFocus: false
|
||||
autoFocus: false,
|
||||
disableClose: true
|
||||
});
|
||||
let instance = dialogRef.componentInstance;
|
||||
instance.server = this.server;
|
||||
@ -721,7 +723,8 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
||||
editProject() {
|
||||
const dialogRef = this.dialog.open(EditProjectDialogComponent, {
|
||||
width: '600px',
|
||||
autoFocus: false
|
||||
autoFocus: false,
|
||||
disableClose: true
|
||||
});
|
||||
let instance = dialogRef.componentInstance;
|
||||
instance.server = this.server;
|
||||
@ -732,7 +735,8 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
||||
let uuid: string = '';
|
||||
const dialogRef = this.dialog.open(ImportProjectDialogComponent, {
|
||||
width: '400px',
|
||||
autoFocus: false
|
||||
autoFocus: false,
|
||||
disableClose: true
|
||||
});
|
||||
let instance = dialogRef.componentInstance;
|
||||
instance.server = this.server;
|
||||
|
Reference in New Issue
Block a user