From c45d54cc0e6eab48c2017b99f30ff5c9f059670a Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 10 Sep 2019 13:28:46 +0900 Subject: [PATCH] Extract validation rules from each components --- .../organisms/LabelCreationForm.vue | 13 +++----- frontend/components/organisms/LabelList.vue | 8 ++++- .../organisms/MemberAdditionForm.vue | 11 +++---- frontend/components/organisms/MemberList.vue | 6 +++- .../organisms/ProjectCreationForm.vue | 18 ++++------ frontend/rules/index.js | 33 +++++++++++++++++++ 6 files changed, 59 insertions(+), 30 deletions(-) create mode 100644 frontend/rules/index.js diff --git a/frontend/components/organisms/LabelCreationForm.vue b/frontend/components/organisms/LabelCreationForm.vue index 8817e994..6791ee89 100644 --- a/frontend/components/organisms/LabelCreationForm.vue +++ b/frontend/components/organisms/LabelCreationForm.vue @@ -14,7 +14,7 @@ > @@ -40,6 +40,7 @@