Adding retries to Google Chat Notifications #6242 (#6245)

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Max Michels
2025-10-24 21:50:25 +02:00
committed by GitHub
co-authored by Frank Elsinga
parent 9a3613856c
commit cd49700d3f
3 changed files with 42 additions and 3 deletions
@@ -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>