From f6795c77b0f0773bb4ea5ce160015ebb211bd995 Mon Sep 17 00:00:00 2001 From: raxelsen Date: Thu, 30 Aug 2018 14:56:23 +0200 Subject: [PATCH] TT#40253 Notify user invalid destination input What has been done: - TT#43257, Bind validation functions to the input fields - TT#43256, Provide proper error messages and put these in the translation file Change-Id: I3b8d9c7b627fab960fc5491b0bb8aa9266f6bc73 --- src/components/call/CscPhoneNumberInput.vue | 4 +- .../CallForward/CscAddDestinationForm.vue | 103 +++++++++++++++--- .../PbxConfiguration/CscPbxGroupAddForm.vue | 35 ++++-- .../pages/PbxConfiguration/CscPbxSeat.vue | 2 +- .../PbxConfiguration/CscPbxSeatAddForm.vue | 26 +++-- src/locales/en.json | 28 ++--- 6 files changed, 142 insertions(+), 56 deletions(-) diff --git a/src/components/call/CscPhoneNumberInput.vue b/src/components/call/CscPhoneNumberInput.vue index fe334533..e323f2a3 100644 --- a/src/components/call/CscPhoneNumberInput.vue +++ b/src/components/call/CscPhoneNumberInput.vue @@ -71,10 +71,10 @@ ], computed: { errorMessage() { - return this.$t('call.inputValidNumber'); + return this.$t('validationErrors.inputValidNumber'); }, helperMessage() { - return this.$t('call.inputNumber'); + return this.$t('validationErrors.inputNumber'); }, inputReadonly() { return this.isMobile; diff --git a/src/components/pages/CallForward/CscAddDestinationForm.vue b/src/components/pages/CallForward/CscAddDestinationForm.vue index ccc61392..02ef5a22 100644 --- a/src/components/pages/CallForward/CscAddDestinationForm.vue +++ b/src/components/pages/CallForward/CscAddDestinationForm.vue @@ -29,8 +29,7 @@
{{ $t('buttons.save') }} @@ -76,12 +81,31 @@