Spaces:
Running
Running
Update flare-ui/src/app/dialogs/api-edit-dialog/api-edit-dialog.component.ts
Browse files
flare-ui/src/app/dialogs/api-edit-dialog/api-edit-dialog.component.ts
CHANGED
@@ -219,18 +219,6 @@ export default class ApiEditDialogComponent implements OnInit {
|
|
219 |
this.responseMappings.removeAt(index);
|
220 |
}
|
221 |
|
222 |
-
insertTemplateVariable(field: string, variable: string) {
|
223 |
-
const control = field.includes('.')
|
224 |
-
? this.form.get(field)
|
225 |
-
: this.form.get(field);
|
226 |
-
|
227 |
-
if (control) {
|
228 |
-
const currentValue = control.value || '';
|
229 |
-
const newValue = currentValue + `{{${variable}}}`;
|
230 |
-
control.setValue(newValue);
|
231 |
-
}
|
232 |
-
}
|
233 |
-
|
234 |
insertHeaderValue(index: number, variable: string) {
|
235 |
const headerGroup = this.headers.at(index);
|
236 |
if (headerGroup) {
|
|
|
219 |
this.responseMappings.removeAt(index);
|
220 |
}
|
221 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
insertHeaderValue(index: number, variable: string) {
|
223 |
const headerGroup = this.headers.at(index);
|
224 |
if (headerGroup) {
|