|
|
@ -12,7 +12,9 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="webhook-content-type" class="form-label">{{ $t("Content Type") }}</label>
|
|
|
|
<label for="webhook-content-type" class="form-label">{{
|
|
|
|
|
|
|
|
$t("Content Type")
|
|
|
|
|
|
|
|
}}</label>
|
|
|
|
<select
|
|
|
|
<select
|
|
|
|
id="webhook-content-type"
|
|
|
|
id="webhook-content-type"
|
|
|
|
v-model="$parent.notification.webhookContentType"
|
|
|
|
v-model="$parent.notification.webhookContentType"
|
|
|
@ -24,7 +26,7 @@
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-text">
|
|
|
|
<div class="form-text">
|
|
|
|
<p>{{ $t("webhookJsonDesc", ["\"application/json\""]) }}</p>
|
|
|
|
<p>{{ $t("webhookJsonDesc", ['"application/json"']) }}</p>
|
|
|
|
<i18n-t tag="p" keypath="webhookFormDataDesc">
|
|
|
|
<i18n-t tag="p" keypath="webhookFormDataDesc">
|
|
|
|
<template #multipart>"multipart/form-data"</template>
|
|
|
|
<template #multipart>"multipart/form-data"</template>
|
|
|
|
<template #decodeFunction>
|
|
|
|
<template #decodeFunction>
|
|
|
@ -35,20 +37,42 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="authorization-header" class="form-label">{{ $t("Authorization Header") }}</label>
|
|
|
|
<i18n-t
|
|
|
|
<HiddenInput
|
|
|
|
tag="label"
|
|
|
|
id="authorization-header"
|
|
|
|
class="form-label"
|
|
|
|
v-model="$parent.notification.webhookAuthorizationHeader"
|
|
|
|
for="additionalHeaders"
|
|
|
|
autocomplete="one-time-code"
|
|
|
|
keypath="webhookAdditionalHeadersTitle"
|
|
|
|
></HiddenInput>
|
|
|
|
>
|
|
|
|
|
|
|
|
</i18n-t>
|
|
|
|
|
|
|
|
<textarea
|
|
|
|
|
|
|
|
id="additionalHeaders"
|
|
|
|
|
|
|
|
v-model="$parent.notification.webhookAdditionalHeaders"
|
|
|
|
|
|
|
|
class="form-control"
|
|
|
|
|
|
|
|
:placeholder="headersPlaceholder"
|
|
|
|
|
|
|
|
></textarea>
|
|
|
|
|
|
|
|
<div class="form-text">
|
|
|
|
|
|
|
|
<i18n-t tag="p" keypath="webhookAdditionalHeadersDesc"> </i18n-t>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import HiddenInput from "../HiddenInput.vue";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
computed: {
|
|
|
|
HiddenInput,
|
|
|
|
headersPlaceholder() {
|
|
|
|
|
|
|
|
return this.$t("Example:", [
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"HeaderName": "HeaderValue"
|
|
|
|
|
|
|
|
}`,
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
|
|
|
|
min-height: 200px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|