Skip to content

Commit

Permalink
fix: can't delete workflow event http header (AutomaApp#1385)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kholid060 committed Sep 18, 2023
1 parent 05abad9 commit 93aea24
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/newtab/workflow/settings/event/EventCodeHTTP.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,26 @@
<ui-tab-panels v-model="activeTab">
<ui-tab-panel value="headers">
<div class="mt-4 grid grid-cols-7 justify-items-center gap-2">
<template v-for="(items, index) in data.headers" :key="index">
<template v-for="(header, index) in data.headers" :key="index">
<ui-input
v-model="items.name"
:title="items.name"
v-model="header.name"
:title="header.name"
:placeholder="`Header ${index + 1}`"
type="text"
class="col-span-3"
/>
<ui-input
v-model="items.value"
:title="items.value"
v-model="header.value"
:title="header.value"
placeholder="Value"
type="text"
class="col-span-3"
/>
<button
@click="
emitData({ headers: data.filter((_, idx) => idx !== index) })
emitData({
headers: data.headers.filter((_, idx) => idx !== index),
})
"
>
<v-remixicon name="riCloseCircleLine" size="20" />
Expand Down

0 comments on commit 93aea24

Please sign in to comment.