@valtimo/layout 13.52.0 → 13.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3422,13 +3422,11 @@ class WidgetWizardDisplayConditionsStepComponent {
|
|
|
3422
3422
|
content: this.translateService.instant('condition.operator.' + operator),
|
|
3423
3423
|
selected: false,
|
|
3424
3424
|
}))));
|
|
3425
|
-
this.defaultConditionValues$ =
|
|
3426
|
-
|
|
3427
|
-
:
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
value: condition.value,
|
|
3431
|
-
}))));
|
|
3425
|
+
this.defaultConditionValues$ = of(this.widgetWizardService.$widgetDisplayConditions()).pipe(map((conditions) => (conditions ?? []).map(condition => ({
|
|
3426
|
+
key: condition.path,
|
|
3427
|
+
dropdown: condition.operator,
|
|
3428
|
+
value: condition.value,
|
|
3429
|
+
}))));
|
|
3432
3430
|
this.form = this.fb.group({
|
|
3433
3431
|
conditions: this.fb.control(null),
|
|
3434
3432
|
});
|