ng-configcat-publicapi-ui 5.4.1 → 5.4.2
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.
|
@@ -7200,10 +7200,7 @@ class CreateFeatureFlagComponent extends BaseComponent {
|
|
|
7200
7200
|
data: {
|
|
7201
7201
|
value: stringValueControl.value,
|
|
7202
7202
|
readOnly: stringValueControl.disabled,
|
|
7203
|
-
validators:
|
|
7204
|
-
Validators.required,
|
|
7205
|
-
Validators.maxLength(this.maxStringFlagValueLength),
|
|
7206
|
-
],
|
|
7203
|
+
validators: this.formGroup.controls.isJson.value ? this.jsonValidators : this.stringValidators,
|
|
7207
7204
|
maxValueLength: this.maxStringFlagValueLength,
|
|
7208
7205
|
description: "Modify the text within the editor to change the initial value.",
|
|
7209
7206
|
disableTextEditor: this.formGroup.controls.isJson.value,
|