Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Add validation logic

Acho Arnold7d37ffdd6c5b
diff --git a/web/pages/settings/index.vue b/web/pages/settings/index.vue
index f5494e24..ebe95562 100644
--- a/web/pages/settings/index.vue
+++ b/web/pages/settings/index.vue
@@ -619,6 +619,13 @@
dense
placeholder="How many retries when sending an SMS"
label="Max Send Attempts"
+ min="1"
+ max="5"
+ :rules="[
+ (v) =>
+ (v >= 1 && v <= 5) ||
+ 'Max send attempts must be between 1 and 5',
+ ]"
>
</v-text-field>
<v-autocomplete