summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-06-25 10:52:41 +0100
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-06-25 10:52:41 +0100
commit34758a55bc7fdd90f79366d1258ce16522992519 (patch)
tree665085bf144d69cc760c9c4c24bb5aa71062e1dd
parentc9bb836e4b0287ce3c7c2605db63b8119ba839fa (diff)
downloadgitlab-ce-46396-recognise-when-a-user-is-trying-to-validate-a-private-ssh-key.tar.gz
-rw-r--r--app/assets/javascripts/pages/profiles/keys/index.js9
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();
+});