mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 17:23:21 +00:00
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
co-authored by
Frank Elsinga
parent
9a3613856c
commit
cd49700d3f
@@ -11,6 +11,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="google-chat-max-retries" class="form-label">{{ $t("Maximum Retries") }}<span style="color: red;"><sup>*</sup></span></label>
|
||||
<input id="google-chat-max-retries" v-model.number="$parent.notification.googleChatMaxRetries" type="number" class="form-control" min="1" max="10" step="1" required>
|
||||
<div class="form-text">
|
||||
{{ $t("Number of retry attempts if webhook fails") }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<div class="form-check form-switch">
|
||||
<input id="google-chat-use-template" v-model="$parent.notification.googleChatUseTemplate" type="checkbox" class="form-check-input">
|
||||
@@ -45,5 +53,11 @@ export default {
|
||||
]);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// Initialize default if needed
|
||||
if (!this.$parent.notification.googleChatMaxRetries) {
|
||||
this.$parent.notification.googleChatMaxRetries ||= 1;
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
+3
-1
@@ -1170,5 +1170,7 @@
|
||||
"Bot secret": "Bot secret",
|
||||
"Send UP silently": "Send UP silently",
|
||||
"Send DOWN silently": "Send DOWN silently",
|
||||
"Installing a Nextcloud Talk bot requires administrative access to the server.": "Installing a Nextcloud Talk bot requires administrative access to the server."
|
||||
"Installing a Nextcloud Talk bot requires administrative access to the server.": "Installing a Nextcloud Talk bot requires administrative access to the server.",
|
||||
"Number of retry attempts if webhook fails": "Number of retry attempts (every 60-180 seconds) if the webhook fails.",
|
||||
"Maximum Retries": "Maximum Retries"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user