diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-24 15:09:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-24 15:09:32 +0300 |
commit | f296f23500b4b3758670ae0c5ce2e1779f533e8b (patch) | |
tree | 717151cb9e81d489b4ecf880988ea10d77b7224f /app/assets/javascripts/sessions/new/index.js | |
parent | fd7c75bf603f4f2f1a4a4e63ef5cbc1a51cc0a15 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/sessions/new/index.js')
-rw-r--r-- | app/assets/javascripts/sessions/new/index.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/assets/javascripts/sessions/new/index.js b/app/assets/javascripts/sessions/new/index.js new file mode 100644 index 00000000000..51022a281e3 --- /dev/null +++ b/app/assets/javascripts/sessions/new/index.js @@ -0,0 +1,22 @@ +import Vue from 'vue'; +import EmailVerification from './components/email_verification.vue'; + +export default () => { + const el = document.querySelector('.js-email-verification'); + + if (!el) { + return null; + } + + const { obfuscatedEmail, verifyPath, resendPath } = el.dataset; + + return new Vue({ + el, + name: 'EmailVerificationRoot', + render(createElement) { + return createElement(EmailVerification, { + props: { obfuscatedEmail, verifyPath, resendPath }, + }); + }, + }); +}; |