From e6dc3f42cedaf9953d737cf30cf7ed317b634be7 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 16 Mar 2021 10:36:07 +0100 Subject: [PATCH] setting up invite button --- .../components/InviteButton/InviteButton.vue | 17 ++ webapp/config/index.js | 2 + webapp/layouts/default.vue | 192 ++++++++++-------- 3 files changed, 122 insertions(+), 89 deletions(-) create mode 100644 webapp/components/InviteButton/InviteButton.vue diff --git a/webapp/components/InviteButton/InviteButton.vue b/webapp/components/InviteButton/InviteButton.vue new file mode 100644 index 000000000..57c60c8e4 --- /dev/null +++ b/webapp/components/InviteButton/InviteButton.vue @@ -0,0 +1,17 @@ + + + diff --git a/webapp/config/index.js b/webapp/config/index.js index fd564f350..678239729 100644 --- a/webapp/config/index.js +++ b/webapp/config/index.js @@ -29,6 +29,8 @@ const sentry = { const options = { VERSION: process.env.VERSION || pkg.version, DESCRIPTION: process.env.DESCRIPTION || pkg.description, + PUBLIC_REGISTRATION: process.env.PUBLIC_REGISTRATION === 'true', + INVITE_REGISTRATION: process.env.INVITE_REGISTRATION === 'true', // Cookies COOKIE_EXPIRE_TIME: process.env.COOKIE_EXPIRE_TIME || 730, // Two years by default COOKIE_HTTPS_ONLY: process.env.COOKIE_HTTPS_ONLY || process.env.NODE_ENV === 'production', // ensure true in production if not set explicitly diff --git a/webapp/layouts/default.vue b/webapp/layouts/default.vue index 0bf98967e..e666d5e44 100644 --- a/webapp/layouts/default.vue +++ b/webapp/layouts/default.vue @@ -40,9 +40,9 @@