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:
André Ligné 2025-07-03 22:33:22 +02:00
parent 54b0c89ea5
commit f942c9d169

View file

@ -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>