Prevent dialogs to close easily (Fixes #4116)
dialogs (created by MatDialog) should only close if the user explicit clicks 'x' or 'cancel' now
This commit is contained in:
parent
eab6e9bfd0
commit
2ef35d0b50
@ -46,6 +46,7 @@ export class ChoiceService extends OpenSlidesComponent {
|
|||||||
const dialogRef = this.dialog.open(ChoiceDialogComponent, {
|
const dialogRef = this.dialog.open(ChoiceDialogComponent, {
|
||||||
minWidth: '250px',
|
minWidth: '250px',
|
||||||
maxHeight: '90vh',
|
maxHeight: '90vh',
|
||||||
|
disableClose: true,
|
||||||
data: {
|
data: {
|
||||||
title: title,
|
title: title,
|
||||||
choices: choices,
|
choices: choices,
|
||||||
|
@ -600,7 +600,10 @@ export class CopyrightSignComponent {
|
|||||||
|
|
||||||
if (this.clickCounter === 5) {
|
if (this.clickCounter === 5) {
|
||||||
this.clickCounter = 0;
|
this.clickCounter = 0;
|
||||||
this.dialog.open(C4DialogComponent, { width: '550px' });
|
this.dialog.open(C4DialogComponent, {
|
||||||
|
width: '550px',
|
||||||
|
disableClose: true
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
this.clickTimeout = <any>setTimeout(() => {
|
this.clickTimeout = <any>setTimeout(() => {
|
||||||
this.clickCounter = 0;
|
this.clickCounter = 0;
|
||||||
|
@ -118,7 +118,8 @@ export class AgendaListComponent extends ListViewBaseComponent<ViewItem> impleme
|
|||||||
public openEditInfo(item: ViewItem): void {
|
public openEditInfo(item: ViewItem): void {
|
||||||
const dialogRef = this.dialog.open(ItemInfoDialogComponent, {
|
const dialogRef = this.dialog.open(ItemInfoDialogComponent, {
|
||||||
width: '400px',
|
width: '400px',
|
||||||
data: item
|
data: item,
|
||||||
|
disableClose: true
|
||||||
});
|
});
|
||||||
|
|
||||||
dialogRef.afterClosed().subscribe(result => {
|
dialogRef.afterClosed().subscribe(result => {
|
||||||
|
@ -319,7 +319,8 @@ export class MotionDetailDiffComponent extends BaseViewComponent implements Afte
|
|||||||
this.dialogService.open(MotionChangeRecommendationComponent, {
|
this.dialogService.open(MotionChangeRecommendationComponent, {
|
||||||
height: '400px',
|
height: '400px',
|
||||||
width: '600px',
|
width: '600px',
|
||||||
data: data
|
data: data,
|
||||||
|
disableClose: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -203,7 +203,8 @@ export class MotionPollComponent implements OnInit {
|
|||||||
const dialogRef = this.dialog.open(MotionPollDialogComponent, {
|
const dialogRef = this.dialog.open(MotionPollDialogComponent, {
|
||||||
data: { ...this.poll },
|
data: { ...this.poll },
|
||||||
maxHeight: '90vh',
|
maxHeight: '90vh',
|
||||||
minWidth: '250px'
|
minWidth: '250px',
|
||||||
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed().subscribe(result => {
|
dialogRef.afterClosed().subscribe(result => {
|
||||||
if (result) {
|
if (result) {
|
||||||
|
Loading…
Reference in New Issue
Block a user