From 1a19f9ef219b7a813f459a53962b1706080bb14f Mon Sep 17 00:00:00 2001 From: Axolotle Date: Fri, 30 Oct 2020 13:58:44 +0100 Subject: [PATCH] update DomainAdd views with validation --- app/src/components/AdressInputSelect.vue | 11 +- .../components/reusableForms/DomainForm.vue | 210 +++++++----------- .../helpers/validators/customValidators.js | 13 +- app/src/helpers/yunohostArguments.js | 2 +- app/src/store/data.js | 3 + app/src/views/PostInstall.vue | 6 +- app/src/views/domain/DomainAdd.vue | 19 +- 7 files changed, 112 insertions(+), 152 deletions(-) diff --git a/app/src/components/AdressInputSelect.vue b/app/src/components/AdressInputSelect.vue index 3965085e..815a028b 100644 --- a/app/src/components/AdressInputSelect.vue +++ b/app/src/components/AdressInputSelect.vue @@ -19,12 +19,8 @@ /> - - {{ localPartDesc || $t('user_mail_local_part_description') }} - - - {{ domainDesc || $t('user_mail_domain_description') }} - + + @@ -41,8 +37,7 @@ export default { placeholder: { type: String, default: null }, id: { type: String, default: null }, state: { type: null, default: null }, - localPartDesc: { type: String, default: null }, - domainDesc: { type: String, default: null } + type: { type: String, default: 'email' } }, computed: { diff --git a/app/src/components/reusableForms/DomainForm.vue b/app/src/components/reusableForms/DomainForm.vue index bf7518eb..22ddec94 100644 --- a/app/src/components/reusableForms/DomainForm.vue +++ b/app/src/components/reusableForms/DomainForm.vue @@ -1,137 +1,109 @@