Pull repository "Copy SSH public key to clipboard" button does not work
Summary
In !2551 (merged) we added a button to copy SSH public keys to the clipboard. However, this button is not working.
Steps to reproduce
- Create a new project
- Go to settings/repository
- Click "Pull mirror"
- Enter an ssh:// URL
- Select "SSH public key authentication"
- Click the "Copy to clipboard" button to the right of the public key
What is the current bug behavior?
I've just gone and pressed that button. Now when I hit CTRL+V, I see:
dashboard/todos
What is the expected correct behavior?
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDGHxfYG7Cf8a4AGT1/3bIGOR7HLlP4/moei2+jIeUR1ZZHHmhHBqTyE36F5y5azIae9AuRLj56VXCvomdA5m+EpK54Usw8hcJ20qAnLKQ4OsOCQM5JarEqo1yYGjdrKpBPQKF0Z54WPI+0MRrYqtgrw8SlJABHplzjgpAJzmFcMvqVAJfeqXYfmR1J4JDHpMPQ0GEuQwenDz9Xe2OOaTLwPgDumhUEtECWbxvKqYkYHh3YC+r7OeUzCbZWEm5s5NpIGnA2fwfh454ztJ+G91jUJZ5fR3PPqbzU3hQHIb+Au7DM3YYE3a9gNa+BddGnvUxdYYUnjaf2UipuzM/oM2K1VzniHKrQrhFnYXCC9lsu4QoSZdvJlLvBUhoYauqTPj+mWIXkNGbaMYxzs0yseYjltRIsyMVMhTnyOd24ITrsk130F9n599HQzrw2HMizu+PXOWgahe6mHGcsang6eEoC1sMG6EQFRHkPppY1XFLZnb2SlkIoEJ+UjABrHuHXTTK5U1Rm1OgNZTxdFv48S35TOeMQKk4027JVFIWMShsnNpRyRDIH1XpYgYojyUbwY9OssAOLNR9zcGXDd6VQoRrkw1QLb4KxF++GX4rDYrUfXiAiDisFGbPqTBF7SvBR+zQBxG9TqGaGddrzZQYS6ZYrGRLdmZUOs2JALs5r1+6xAQ== git@gitlab.com
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
/cc @kushalpandya