Merge pull request #4270 from GabrielInTheWorld/4116

Prevent dialogs to close easily
This commit is contained in:
Finn Stutzenstein 2019-02-08 07:19:28 +01:00 committed by GitHub
commit 812168b00c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 4 deletions

View File

@ -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,

View File

@ -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;

View File

@ -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 => {

View File

@ -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
}); });
} }

View File

@ -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) {