From 393a05c358b5a8066bdaae22a85c6a3c122fa779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 2 Mar 2021 12:33:47 +0100 Subject: [PATCH] Implement 'no-public-registration' slider --- .../ComponentSlider/ComponentSlider.vue | 2 +- .../Registration/RegistrationSlideCreate.vue | 1 + .../Registration/RegistrationSlideEmail.vue | 1 + .../Registration/RegistrationSlideInvite.vue | 1 + .../RegistrationSlideNoPublic.vue | 35 ++++++++++ .../Registration/RegistrationSlideNonce.vue | 2 +- .../Registration/RegistrationSlider.story.js | 8 +++ .../Registration/RegistrationSlider.vue | 66 ++++++++++++------- webapp/middleware/authenticated.js | 2 +- webapp/pages/registration.vue | 7 +- 10 files changed, 96 insertions(+), 29 deletions(-) create mode 100644 webapp/components/Registration/RegistrationSlideNoPublic.vue diff --git a/webapp/components/ComponentSlider/ComponentSlider.vue b/webapp/components/ComponentSlider/ComponentSlider.vue index 9ecaa5711..483c46dbf 100644 --- a/webapp/components/ComponentSlider/ComponentSlider.vue +++ b/webapp/components/ComponentSlider/ComponentSlider.vue @@ -9,7 +9,7 @@ - +
+ + + + + + + diff --git a/webapp/components/Registration/RegistrationSlideNonce.vue b/webapp/components/Registration/RegistrationSlideNonce.vue index 5b619641e..bb01263bd 100644 --- a/webapp/components/Registration/RegistrationSlideNonce.vue +++ b/webapp/components/Registration/RegistrationSlideNonce.vue @@ -52,7 +52,7 @@ export default { mounted: function () { this.$nextTick(function () { // Code that will run only after the entire view has been rendered - // console.log('mounted !!! ') + this.formData.nonce = this.sliderData.collectedInputData.nonce ? this.sliderData.collectedInputData.nonce : '' diff --git a/webapp/components/Registration/RegistrationSlider.story.js b/webapp/components/Registration/RegistrationSlider.story.js index 65555dfb0..a801000eb 100644 --- a/webapp/components/Registration/RegistrationSlider.story.js +++ b/webapp/components/Registration/RegistrationSlider.story.js @@ -158,3 +158,11 @@ storiesOf('RegistrationSlider', module) `, })) + .add('no-public-registration', () => ({ + components: { RegistrationSlider }, + store: helpers.store, + data: () => ({}), + template: ` + + `, + })) diff --git a/webapp/components/Registration/RegistrationSlider.vue b/webapp/components/Registration/RegistrationSlider.vue index 5b57c167c..c10cc93e6 100644 --- a/webapp/components/Registration/RegistrationSlider.vue +++ b/webapp/components/Registration/RegistrationSlider.vue @@ -14,23 +14,19 @@ -