From 96938a5511568c6f8b6131e966b9d9ba0d56a1d4 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 4 Dec 2020 15:12:00 +0100 Subject: [PATCH] Refactor the participation section for an event And add a test for this new section Signed-off-by: Thomas Citharel --- .../Participation/ParticipationSection.vue | 167 ++++++++++++++++++ js/src/views/Event/Event.vue | 88 ++------- .../ParticipationSection.spec.ts | 145 +++++++++++++++ 3 files changed, 324 insertions(+), 76 deletions(-) create mode 100644 js/src/components/Participation/ParticipationSection.vue create mode 100644 js/tests/unit/specs/components/Participation/ParticipationSection.spec.ts diff --git a/js/src/components/Participation/ParticipationSection.vue b/js/src/components/Participation/ParticipationSection.vue new file mode 100644 index 000000000..ceed46b38 --- /dev/null +++ b/js/src/components/Participation/ParticipationSection.vue @@ -0,0 +1,167 @@ + + diff --git a/js/src/views/Event/Event.vue b/js/src/views/Event/Event.vue index 3974c7519..5c665e347 100644 --- a/js/src/views/Event/Event.vue +++ b/js/src/views/Event/Event.vue @@ -104,80 +104,16 @@
-
-
- - {{ $t("Cancel anonymous participation") }} - - {{ $t("You are participating in this event anonymously") }} - - - - - - - - {{ - $t( - "You are participating in this event anonymously but didn't confirm participation" - ) - }} - - - - - - -
-
- -
-
+