allow numeric input when using telegram

pull/1081/head
Nils 2021-09-05 20:09:30 +02:00
parent 57e594823a
commit eb5589eeaf
1 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ export default {
this.notifier.form.forEach((f) => {
let field = f.field.toLowerCase()
let val = this.notifier[field]
if (this.isNumeric(val)) {
if (this.isNumeric(val) && (this.form.method!='telegram' && field != 'var1')) {
val = parseInt(val)
}
this.form[field] = val
@ -304,7 +304,7 @@ export default {
this.notifier.form.forEach((f) => {
let field = f.field.toLowerCase()
let val = this.notifier[field]
if (this.isNumeric(val)) {
if (this.isNumeric(val) && (this.form.method!='telegram' && field != 'var1')) {
val = parseInt(val)
}
this.form[field] = val