You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interestingly there are two different things going on here.
For the GPG key, indeed the copy function is the problem.
For the SSH key, the actual key is formatted in the DOM with extra padding which would also need to be fixed.
Describe the bug
When you click
Copy
on theKeys
section of the UI the key is copied to system clipboard but has left padding.To Reproduce
Steps to reproduce the behavior:
Keys
Copy
next to ssh key.Expected behavior
When copying we should copy the contents of the key not including left padding.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
I believe this is the javascript generating this issue, https://github.com/mozilla-iam/dino-park-front-end/blob/master/src/components/ui/Key.vue#L49. According to MDN
Document.execCommand
is deprecated so perhaps moving this to clipboard api would help https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_APIThe text was updated successfully, but these errors were encountered: