mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-18 23:34:04 +02:00
Allow updating webhook notification without custom body
When trying to send a webhook notification to Proxmox to restart my VM when a service fails, I did not want to send along any body for the request. When trying to save the form I couldn't because I didn't fill out the textarea with a custom body. If I tried clicking 'Test' instead, it would successfully sending the request, so then it makes sense to allow the users save it without a custom body as well.
This commit is contained in:
parent
54b0c89ea5
commit
f942c9d169
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
||||||
</template>
|
</template>
|
||||||
</i18n-t>
|
</i18n-t>
|
||||||
<template v-else-if="$parent.notification.webhookContentType == 'custom'">
|
<template v-else-if="$parent.notification.webhookContentType == 'custom'">
|
||||||
<TemplatedTextarea id="customBody" v-model="$parent.notification.webhookCustomBody" :required="true" :placeholder="customBodyPlaceholder"></TemplatedTextarea>
|
<TemplatedTextarea id="customBody" v-model="$parent.notification.webhookCustomBody" :placeholder="customBodyPlaceholder"></TemplatedTextarea>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue