|
|
@ -26,6 +26,7 @@ export class GfPromptDialogComponent { |
|
|
public formControl = new FormControl(''); |
|
|
public formControl = new FormControl(''); |
|
|
public title: string; |
|
|
public title: string; |
|
|
public valueLabel?: string; |
|
|
public valueLabel?: string; |
|
|
|
|
|
public valueSuffix?: string; |
|
|
|
|
|
|
|
|
protected readonly dialogRef = |
|
|
protected readonly dialogRef = |
|
|
inject<MatDialogRef<GfPromptDialogComponent>>(MatDialogRef); |
|
|
inject<MatDialogRef<GfPromptDialogComponent>>(MatDialogRef); |
|
|
@ -35,7 +36,8 @@ export class GfPromptDialogComponent { |
|
|
defaultValue, |
|
|
defaultValue, |
|
|
discardLabel, |
|
|
discardLabel, |
|
|
title, |
|
|
title, |
|
|
valueLabel |
|
|
valueLabel, |
|
|
|
|
|
valueSuffix |
|
|
}: PromptDialogParams) { |
|
|
}: PromptDialogParams) { |
|
|
this.confirmLabel = confirmLabel; |
|
|
this.confirmLabel = confirmLabel; |
|
|
this.defaultValue = defaultValue; |
|
|
this.defaultValue = defaultValue; |
|
|
@ -43,5 +45,6 @@ export class GfPromptDialogComponent { |
|
|
this.formControl.setValue(defaultValue ?? null); |
|
|
this.formControl.setValue(defaultValue ?? null); |
|
|
this.title = title; |
|
|
this.title = title; |
|
|
this.valueLabel = valueLabel; |
|
|
this.valueLabel = valueLabel; |
|
|
|
|
|
this.valueSuffix = valueSuffix; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|