mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Edit webhook.js and Webhook.vue
Check linters
This commit is contained in:
parent
4c79cf1186
commit
ae0d07737e
2 changed files with 16 additions and 17 deletions
|
@ -79,7 +79,7 @@ class Webhook extends NotificationProvider {
|
|||
}
|
||||
}
|
||||
|
||||
if (notification.webhookAdditionalHeaders && notification.webhookContentType != "CompletlyCustom") {
|
||||
if (notification.webhookAdditionalHeaders && notification.webhookContentType !== "CompletlyCustom") {
|
||||
try {
|
||||
config.headers = {
|
||||
...config.headers,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="mb-3" v-if="$parent.notification.webhookContentType != 'CompletlyCustom'">
|
||||
<div v-if="$parent.notification.webhookContentType != 'CompletlyCustom'" class="mb-3" >
|
||||
<label for="webhook-url" class="form-label">{{ $t("Post URL") }}</label>
|
||||
<input
|
||||
id="webhook-url"
|
||||
|
@ -10,7 +10,7 @@
|
|||
required
|
||||
/>
|
||||
</div>
|
||||
<div class="mb-3" v-if="$parent.notification.webhookContentType == 'CompletlyCustom'">
|
||||
<div v-if="$parent.notification.webhookContentType == 'CompletlyCustom'" class="mb-3" >
|
||||
<label for="webhook-url" class="form-label">{{ $t("Post URL UP") }}</label>
|
||||
<input
|
||||
id="webhook-url"
|
||||
|
@ -21,7 +21,7 @@
|
|||
required
|
||||
/>
|
||||
</div>
|
||||
<div class="mb-3" v-if="$parent.notification.webhookContentType == 'CompletlyCustom'">
|
||||
<div v-if="$parent.notification.webhookContentType == 'CompletlyCustom'" class="mb-3" >
|
||||
<label for="webhook-url" class="form-label">{{ $t("Post URL DOWN") }}</label>
|
||||
<input
|
||||
id="webhook-url"
|
||||
|
@ -69,7 +69,6 @@
|
|||
required
|
||||
></textarea>
|
||||
</template>
|
||||
|
||||
<template v-if="$parent.notification.webhookContentType == 'CompletlyCustom'">
|
||||
<br>
|
||||
<label for="customBodyUp" class="form-label">{{ $t("Body UP") }}</label>
|
||||
|
|
Loading…
Reference in a new issue