Skip to content

Commit 2c9e5f7

Browse files
committed
fix: add cookie to request action
1 parent 0a50f2e commit 2c9e5f7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

frontend/src/main/javascript/src/js/components/forms/actions/rest/request-action-form/request-action-form.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ <h5><strong>Make request</strong></h5>
8989
<input class="form-control" type="text" ng-model="vm.cookie.value" placeholder="Cookie Value">
9090
</div>
9191
<div class="col-sm-2">
92-
<a class="btn btn-default btn-block ng-click="vm.addCookie()">
92+
<a class="btn btn-default btn-block" ng-click="vm.addCookie()">
9393
<i class="fas fa-plus"></i>
9494
</a>
9595
</div>

frontend/src/main/javascript/src/js/components/forms/actions/rest/request-action-form/request-action-form.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ export const requestActionFormComponent = {
5858

5959
addHeader(): void {
6060
this.action.addHeader(this.header.name, this.header.value);
61-
this.cookie.name = null;
62-
this.cookie.value = null;
61+
this.header.name = null;
62+
this.header.value = null;
6363
}
6464

6565
addCookie(): void {
6666
this.action.addCookie(this.cookie.name, this.cookie.value);
67-
this.header.name = null;
68-
this.header.value = null;
67+
this.cookie.name = null;
68+
this.cookie.value = null;
6969
}
7070

7171
setPreset(): void {

0 commit comments

Comments
 (0)