Skip to content

Commit 1b0df70

Browse files
committed
Add node copy key without styling
1 parent ca96427 commit 1b0df70

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/views/inspect/nodes/show.html.haml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
= link_to 'View document', link_to_node_file(@node_future), class: 'btn btn-small'
2121
= link_to 'Visualize present graph', {:format => 'svg'}, :target => :blank, :class => 'btn btn-small'
2222
= link_to 'Visualize future graph', {:format => 'svg', :graph => 'future'}, :target => :blank, :class => 'btn btn-small'
23+
= link_to 'Copy key', '#', onclick: "navigator.clipboard.writeText('#{node_key}'); return false;", class: 'btn btn-small'
2324

2425
.row-fluid.span-12.node-flows
2526
.node-flows-inner

0 commit comments

Comments
 (0)