This commit is contained in:
Valentin Mihai 2022-11-15 13:53:49 +02:00
parent 6763dbe7cd
commit e94e4a02f6

View File

@ -56,7 +56,6 @@ export class ConfirmationDialogInput implements IConfirmationDialogInput {
checkboxesValidation: boolean;
toastMessage?: string;
constructor(options?: IConfirmationDialogInput) {
this.title = options?.title || _('common.confirmation-dialog.title');
this.titleColor = options?.titleColor || TitleColors.DEFAULT;
@ -70,7 +69,7 @@ export class ConfirmationDialogInput implements IConfirmationDialogInput {
this.denyText = options?.denyText || _('common.confirmation-dialog.deny');
this.translateParams = options?.translateParams || {};
this.checkboxes = options?.checkboxes || [];
this.checkboxesValidation = typeof options?.checkboxesValidation === "boolean"? options.checkboxesValidation : true;
this.checkboxesValidation = typeof options?.checkboxesValidation === 'boolean' ? options.checkboxesValidation : true;
this.toastMessage = options?.toastMessage;
}
}