@gravitee/ui-policy-studio-angular 16.1.0-apim-11657-adapt-ui-for-llm-db5f894 → 16.1.0-apim-11657-adapt-ui-for-llm-26c5623
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.
|
@@ -807,7 +807,6 @@ class GioPolicyStudioFlowLlmFormDialogComponent {
|
|
|
807
807
|
methods: new UntypedFormControl(sanitizeMethodFormValue(httpSelector?.methods)),
|
|
808
808
|
condition: new UntypedFormControl(conditionSelector?.condition ?? ''),
|
|
809
809
|
});
|
|
810
|
-
this.defaultFlowName = capitalize(flowDialogData.parentGroupName) + ' flow';
|
|
811
810
|
}
|
|
812
811
|
onSubmit() {
|
|
813
812
|
const httpSelectorToSave = {
|
|
@@ -831,7 +830,7 @@ class GioPolicyStudioFlowLlmFormDialogComponent {
|
|
|
831
830
|
// Mark as changed
|
|
832
831
|
_hasChanged: true,
|
|
833
832
|
// Add changes
|
|
834
|
-
name: this.
|
|
833
|
+
name: this.flowFormGroup?.get('name')?.value,
|
|
835
834
|
enabled: this.existingFlow ? this.existingFlow.enabled : true,
|
|
836
835
|
selectors: conditionSelectorToSave ? [httpSelectorToSave, conditionSelectorToSave] : [httpSelectorToSave],
|
|
837
836
|
};
|
|
@@ -839,10 +838,6 @@ class GioPolicyStudioFlowLlmFormDialogComponent {
|
|
|
839
838
|
...flowToSave,
|
|
840
839
|
});
|
|
841
840
|
}
|
|
842
|
-
getFlowName() {
|
|
843
|
-
const inputName = trim(this.flowFormGroup?.get('name')?.value ?? '');
|
|
844
|
-
return isEmpty(inputName) ? this.defaultFlowName : inputName;
|
|
845
|
-
}
|
|
846
841
|
tagValidationHook(tag, validationCb) {
|
|
847
842
|
validationCb(METHODS_AUTOCOMPLETE.map(m => `${m}`).includes(tag.toUpperCase()));
|
|
848
843
|
}
|
|
@@ -1133,7 +1128,6 @@ class GioPolicyStudioFlowsMenuComponent {
|
|
|
1133
1128
|
dialogResult = this.matDialog
|
|
1134
1129
|
.open(GioPolicyStudioFlowLlmFormDialogComponent, {
|
|
1135
1130
|
data: {
|
|
1136
|
-
parentGroupName: flowGroup.name,
|
|
1137
1131
|
flow: undefined,
|
|
1138
1132
|
},
|
|
1139
1133
|
role: 'alertdialog',
|
|
@@ -1273,7 +1267,6 @@ class GioPolicyStudioFlowsMenuComponent {
|
|
|
1273
1267
|
dialogResult = this.matDialog
|
|
1274
1268
|
.open(GioPolicyStudioFlowLlmFormDialogComponent, {
|
|
1275
1269
|
data: {
|
|
1276
|
-
parentGroupName: flowToEdit._parentFlowGroupName,
|
|
1277
1270
|
flow: flowToEdit,
|
|
1278
1271
|
},
|
|
1279
1272
|
role: 'alertdialog',
|
|
@@ -2348,7 +2341,6 @@ class GioPolicyStudioDetailsComponent {
|
|
|
2348
2341
|
dialogResult = this.matDialog
|
|
2349
2342
|
.open(GioPolicyStudioFlowLlmFormDialogComponent, {
|
|
2350
2343
|
data: {
|
|
2351
|
-
parentGroupName: this.flow._parentFlowGroupName,
|
|
2352
2344
|
flow: this.flow,
|
|
2353
2345
|
},
|
|
2354
2346
|
role: 'alertdialog',
|