Merge pull request #704 from GNS3/Disable-click-outside-of-angular-material-dialog-area-to-close-the-dialog

Disable click outside of angular material dialog area to close the di…
This commit is contained in:
piotrpekala7
2020-02-25 15:08:07 +01:00
committed by GitHub
22 changed files with 56 additions and 28 deletions

View File

@ -705,7 +705,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;
@ -714,7 +715,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;
@ -724,7 +726,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;
@ -735,7 +738,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;