1
0
Fork 0
mirror of https://codeberg.org/beerbrawl/beerbrawl.git synced 2024-09-23 05:40:51 +02:00

fix(#20): frontend: make confirmation dialog a bit wider to improve looks

Signed-off-by: Christoph Heiss <e11907069@student.tuwien.ac.at>
This commit is contained in:
Christoph Heiss 2024-05-26 13:13:50 +02:00
parent c5c759eacb
commit 6202b02e00
Signed by: c8h4
GPG key ID: 73D5E7FDEE3DE49A

View file

@ -12,9 +12,10 @@ export class ConfirmationService {
/*
* Opens a confirmation dialog.
* @param actionToPerform The action to perform.
* @return whether the user answersed positively or negatively
*/
async openConfirmationDialog(actionToPerform: string, infoNote?: string): Promise<boolean> {
const dialogRef = this.matDialog.open(ConfirmDialogComponent, { width: '300px' });
const dialogRef = this.matDialog.open(ConfirmDialogComponent, { width: '400px' });
dialogRef.componentInstance.actionToPerform.set(actionToPerform);
if (infoNote) {
dialogRef.componentInstance.infoNote.set(infoNote);