From 17368b39fc1ce0b19c0641929004553951a43d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gayoso=20Gonz=C3=A1lez?= Date: Mon, 3 Jul 2023 13:13:39 +0200 Subject: [PATCH] Refactor usage of vuelidate of base input text * Create a component to reuse that handles vuelidate validations --- .../BaseInputTextWithVuelidate.vue | 54 +++++++++++++++++++ .../components/social/SocialWallPostForm.vue | 19 ++----- 2 files changed, 58 insertions(+), 15 deletions(-) create mode 100644 assets/vue/components/basecomponents/BaseInputTextWithVuelidate.vue diff --git a/assets/vue/components/basecomponents/BaseInputTextWithVuelidate.vue b/assets/vue/components/basecomponents/BaseInputTextWithVuelidate.vue new file mode 100644 index 0000000000..a513ba2e25 --- /dev/null +++ b/assets/vue/components/basecomponents/BaseInputTextWithVuelidate.vue @@ -0,0 +1,54 @@ + + + diff --git a/assets/vue/components/social/SocialWallPostForm.vue b/assets/vue/components/social/SocialWallPostForm.vue index 7f7ce98b26..382d1d232f 100644 --- a/assets/vue/components/social/SocialWallPostForm.vue +++ b/assets/vue/components/social/SocialWallPostForm.vue @@ -1,23 +1,12 @@