Copy to clipboard on a custom link #18178
Unanswered
AliMickey
asked this question in
Help Wanted!
Replies: 1 comment 1 reply
-
you can create your own handler 'mycoolssh://' and have that linked to a bash/bat/ps/py script that handles the link |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a custom link that contains the following logic:
ssh user@{{object.primary_ip4.address.ip}}
At the moment this results in the link being:
https://dcim.domain.com/dcim/devices/id/ssh%20user@primary_ip
Which is expected somewhat as the purpose of custom links is to inherently being a link.
I would like an option so that the calculated 'link' is copied to clipboard when the link button is clicked on.
I have tried doing 'ssh://' which does work, however does not fit my other use cases with custom ssh parameters (
ssh -i
eg).Are there any suggestions on how this can be achieved?
Beta Was this translation helpful? Give feedback.
All reactions