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:
parent
c5c759eacb
commit
6202b02e00
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue