diff --git a/components/http/BodyParameters.vue b/components/http/BodyParameters.vue
index 75509f7f9..f05fd3e29 100644
--- a/components/http/BodyParameters.vue
+++ b/components/http/BodyParameters.vue
@@ -38,7 +38,6 @@
/>
-
-
-
@@ -243,10 +320,12 @@ export default defineComponent({
@apply flex flex-1;
@apply whitespace-nowrap;
@apply overflow-auto;
- @apply bg-primaryDark;
+ @apply bg-primaryLight;
.file-chips-wrapper {
@apply flex;
+ @apply px-4;
+ @apply py-1;
@apply w-0;
}
}
diff --git a/components/http/Headers.vue b/components/http/Headers.vue
index 95a42efb7..228b56c82 100644
--- a/components/http/Headers.vue
+++ b/components/http/Headers.vue
@@ -82,7 +82,7 @@
@change="
updateHeader(index, {
key: header.key,
- value: $event.target.value,
+ value: $event,
active: header.active,
})
"
diff --git a/components/http/Parameters.vue b/components/http/Parameters.vue
index 98d5a9901..d4bdc5e9b 100644
--- a/components/http/Parameters.vue
+++ b/components/http/Parameters.vue
@@ -57,7 +57,7 @@
"
@change="
updateParam(index, {
- key: $event.target.value,
+ key: $event,
value: param.value,
active: param.active,
})
@@ -100,7 +100,7 @@
@change="
updateParam(index, {
key: param.key,
- value: $event.target.value,
+ value: $event,
active: param.active,
})
"
diff --git a/components/smart/DeletableChip.vue b/components/smart/DeletableChip.vue
index a96c67eb6..b629bfc94 100644
--- a/components/smart/DeletableChip.vue
+++ b/components/smart/DeletableChip.vue
@@ -1,8 +1,9 @@
-
+ attachment
+
@@ -15,15 +16,13 @@
@apply items-center;
@apply justify-center;
@apply rounded;
- @apply m-1;
- @apply pl-4;
- @apply bg-primaryDark;
- @apply text-secondary;
-
+ @apply pl-2;
+ @apply pr-0.5;
+ @apply bg-primary;
@apply border border-divider;
}
.close-button {
- @apply text-base;
+ @apply p-0.5;
}
diff --git a/components/smart/EnvInput.vue b/components/smart/EnvInput.vue
index c7d897d82..ccd711e7b 100644
--- a/components/smart/EnvInput.vue
+++ b/components/smart/EnvInput.vue
@@ -12,7 +12,6 @@
:class="styles"
contenteditable="true"
@keydown.enter.prevent="$emit('enter', $event)"
- @change="$emit('change', $event)"
@keyup="$emit('keyup', $event)"
@click="$emit('click', $event)"
@keydown="$emit('keydown', $event)"
@@ -133,6 +132,7 @@ export default defineComponent({
if (!this.highlightEnabled) {
this.htmlOutput = this.internalValue
this.$emit("input", this.internalValue)
+ this.$emit("change", this.internalValue)
return
}
@@ -232,6 +232,7 @@ export default defineComponent({
})
this.$emit("input", this.internalValue)
+ this.$emit("change", this.internalValue)
},
renderTippy() {
const tippable = document.querySelectorAll("[v-tippy]")
diff --git a/helpers/types/HoppRESTRequest.ts b/helpers/types/HoppRESTRequest.ts
index e3d1fae0b..b789f0198 100644
--- a/helpers/types/HoppRESTRequest.ts
+++ b/helpers/types/HoppRESTRequest.ts
@@ -18,7 +18,7 @@ export type HoppRESTHeader = {
export type FormDataKeyValue = {
key: string
active: boolean
-} & ({ isFile: true; value: Blob } | { isFile: false; value: string })
+} & ({ isFile: true; value: Blob[] } | { isFile: false; value: string })
export type HoppRESTReqBodyFormData = {
contentType: "multipart/form-data"
diff --git a/newstore/RESTSession.ts b/newstore/RESTSession.ts
index e59519793..4980ed9eb 100644
--- a/newstore/RESTSession.ts
+++ b/newstore/RESTSession.ts
@@ -260,7 +260,7 @@ const dispatchers = defineDispatchers({
},
}
},
- removeFormDataEntry(curr: RESTSession, { index }: { index: number }) {
+ deleteFormDataEntry(curr: RESTSession, { index }: { index: number }) {
// Only perform update if the current content-type is formdata
if (curr.request.body.contentType !== "multipart/form-data") return {}
@@ -291,15 +291,17 @@ const dispatchers = defineDispatchers({
},
}
},
- clearAllFormDataEntries(curr: RESTSession) {
+ deleteAllFormDataEntries(curr: RESTSession) {
// Only perform update if the current content-type is formdata
if (curr.request.body.contentType !== "multipart/form-data") return {}
return {
- ...curr.request,
- body: {
- contentType: "multipart/form-data",
- body: [],
+ request: {
+ ...curr.request,
+ body: {
+ contentType: "multipart/form-data",
+ body: [],
+ },
},
}
},
@@ -538,9 +540,9 @@ export function addFormDataEntry(entry: FormDataKeyValue) {
})
}
-export function removeFormDataEntry(index: number) {
+export function deleteFormDataEntry(index: number) {
restSessionStore.dispatch({
- dispatcher: "removeFormDataEntry",
+ dispatcher: "deleteFormDataEntry",
payload: {
index,
},
@@ -557,9 +559,9 @@ export function updateFormDataEntry(index: number, entry: FormDataKeyValue) {
})
}
-export function clearAllFormDataEntries() {
+export function deleteAllFormDataEntries() {
restSessionStore.dispatch({
- dispatcher: "clearAllFormDataEntries",
+ dispatcher: "deleteAllFormDataEntries",
payload: {},
})
}