diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-06-25 10:52:41 +0100 |
---|---|---|
committer | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-06-25 10:52:41 +0100 |
commit | 34758a55bc7fdd90f79366d1258ce16522992519 (patch) | |
tree | 665085bf144d69cc760c9c4c24bb5aa71062e1dd | |
parent | c9bb836e4b0287ce3c7c2605db63b8119ba839fa (diff) | |
download | gitlab-ce-46396-recognise-when-a-user-is-trying-to-validate-a-private-ssh-key.tar.gz |
Add profile/keys page entry of js46396-recognise-when-a-user-is-trying-to-validate-a-private-ssh-key
-rw-r--r-- | app/assets/javascripts/pages/profiles/keys/index.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/assets/javascripts/pages/profiles/keys/index.js b/app/assets/javascripts/pages/profiles/keys/index.js new file mode 100644 index 00000000000..5eba05bfbaa --- /dev/null +++ b/app/assets/javascripts/pages/profiles/keys/index.js @@ -0,0 +1,9 @@ +import AddSshKeyValidation from '~/profile/add_ssh_key_validation'; + +document.addEventListener('DOMContentLoaded', () => { + const input = document.querySelector('.js-add-ssh-key-validation-input'); + const warning = document.querySelector('.js-add-ssh-key-validation-warning'); + + const addSshKeyValidation = new AddSshKeyValidation(input, warning); + addSshKeyValidation.register(); +}); |