mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Compare commits
3 commits
dd02c9c830
...
3a72575859
Author | SHA1 | Date | |
---|---|---|---|
|
3a72575859 | ||
|
a6188da3bc | ||
|
be2f4621d3 |
2 changed files with 6 additions and 6 deletions
|
@ -10,7 +10,6 @@ class Pumble extends NotificationProvider {
|
|||
*/
|
||||
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
|
||||
const okMsg = "Sent Successfully.";
|
||||
let webhookUrl = notification.pumblewebhookURL;
|
||||
|
||||
try {
|
||||
if (heartbeatJSON === null && monitorJSON === null) {
|
||||
|
@ -26,7 +25,7 @@ class Pumble extends NotificationProvider {
|
|||
]
|
||||
};
|
||||
|
||||
await axios.post(webhookUrl, data);
|
||||
await axios.post(notification.webhookURL, data);
|
||||
return okMsg;
|
||||
}
|
||||
|
||||
|
@ -41,7 +40,7 @@ class Pumble extends NotificationProvider {
|
|||
]
|
||||
};
|
||||
|
||||
await axios.post(webhookUrl, data);
|
||||
await axios.post(notification.webhookURL, data);
|
||||
return okMsg;
|
||||
} catch (error) {
|
||||
this.throwGeneralAxiosError(error);
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
<template>
|
||||
<div class="mb-3">
|
||||
<label for="pumble-webhook-url" class="form-label mb-2">{{ $t("Webhook URL") }}</label><span style="color: red;"><sup>*</sup></span>
|
||||
<input id="pumble-webhook-url" v-model="$parent.notification.pumblewebhookURL" type="text" class="form-control" required>
|
||||
<input id="pumble-webhook-url" v-model="$parent.notification.webhookURL" type="url" class="form-control" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<a href="https://pumble.com/help/integrations/add-pumble-apps/incoming-webhooks-for-pumble/" target="_blank">{{ $t("documentationOf", ["Pumble Webbhook"]) }}</a>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue