MT#57240 Allow '+' char in device line number definition

Change-Id: I804ac0014405f6c4646b29f7fc22e67ba70909fd
mr11.4
Marco Capetta 3 years ago
parent 1e39ce39a1
commit 04d9274e99

@ -152,7 +152,7 @@ export default {
target_number: { target_number: {
required, required,
onlyChars: function (value) { onlyChars: function (value) {
const regExpTargetNumber = new RegExp("^[*#0-9]*$"); const regExpTargetNumber = new RegExp("^[*#0-9+]*$");
return regExpTargetNumber.test(value) return regExpTargetNumber.test(value)
} }
} }
@ -297,7 +297,7 @@ export default {
field: this.$t('Target number') field: this.$t('Target number')
}) })
} else if (!this.$v.changes.target_number.onlyChars) { } else if (!this.$v.changes.target_number.onlyChars) {
return this.$t('{field} must consist only of numeric characters or the symbols * or #.', { return this.$t('{field} must consist only of numeric characters or the symbols +, * or #.', {
field: this.$t('Target number') field: this.$t('Target number')
}) })
} else { } else {

@ -562,6 +562,6 @@
"{field} must be at least {minValue} second": "{field} must be at least {minValue} second", "{field} must be at least {minValue} second": "{field} must be at least {minValue} second",
"{field} must be maximum of {maxValue} seconds": "{field} must be maximum of {maxValue} seconds", "{field} must be maximum of {maxValue} seconds": "{field} must be maximum of {maxValue} seconds",
"{field} must consist of numeric characters only": "{field} must consist of numeric characters only", "{field} must consist of numeric characters only": "{field} must consist of numeric characters only",
"{field} must consist only of numeric characters or the symbols * or #.": "{field} must consist only of numeric characters or the symbols * or #.", "{field} must consist only of numeric characters or the symbols +, * or #.": "{field} must consist only of numeric characters or the symbols +, * or #.",
"{field} must have at most {maxLength} letters": "{field} must have at most {maxLength} letters" "{field} must have at most {maxLength} letters": "{field} must have at most {maxLength} letters"
} }
Loading…
Cancel
Save