mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
Compare commits
No commits in common. "a6188da3bca9cddfb5a2264b44d75bb4c1702291" and "c697a47c9af53862b9bb33952d19452759a5baea" have entirely different histories.
a6188da3bc
...
c697a47c9a
2 changed files with 6 additions and 6 deletions
|
@ -10,6 +10,7 @@ class Pumble extends NotificationProvider {
|
||||||
*/
|
*/
|
||||||
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
|
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
|
||||||
const okMsg = "Sent Successfully.";
|
const okMsg = "Sent Successfully.";
|
||||||
|
let webhookUrl = notification.pumblewebhookURL;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (heartbeatJSON === null && monitorJSON === null) {
|
if (heartbeatJSON === null && monitorJSON === null) {
|
||||||
|
@ -25,7 +26,7 @@ class Pumble extends NotificationProvider {
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
await axios.post(notification.webhookURL, data);
|
await axios.post(webhookUrl, data);
|
||||||
return okMsg;
|
return okMsg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +41,7 @@ class Pumble extends NotificationProvider {
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
await axios.post(notification.webhookURL, data);
|
await axios.post(webhookUrl, data);
|
||||||
return okMsg;
|
return okMsg;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.throwGeneralAxiosError(error);
|
this.throwGeneralAxiosError(error);
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="mb-3">
|
<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>
|
<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.webhookURL" type="url" class="form-control" required>
|
<input id="pumble-webhook-url" v-model="$parent.notification.pumblewebhookURL" type="text" 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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<script setup lang="ts">
|
||||||
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue