netbirdio / dashboard

NetBird Management Service Web UI Panel

Home Page:https://app.netbird.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add copy button to the "Add Peer" popup code boxes

pascal-fischer opened this issue · comments

We have the "Add Peer" that contains code boxes with commands to copy to the shell. Those code boxed do not have a copy button.
Screenshot 2023-06-26 at 17 25 46

It would be nice to have a copy button similar to the "Add token" popup. For single line boxed it should be at right end of the code box. For multi-line it should be in the upper right corner. After copying it should be indicated that the code was successfully copied to the clipboard (also on token popup).
Screenshot 2023-06-26 at 17 26 19

If we could exclude comments while copying that would be perfect. This way we allow shells that have interactive_comments set to false to copy as a whole.