Skip to content

Commit 590be49

Browse files
committed
RenderUUIDPrimaryKeyRefsHTML with copy button
1 parent 182ce47 commit 590be49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

information/primarykeys.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ var RenderUUIDPrimaryKeyRefsHTML = http.HandlerFunc(func(writer http.ResponseWri
176176
return !tableRows[i].ForeignKey && tableRows[j].ForeignKey
177177
})
178178
var b strings.Builder
179+
fmt.Fprintf(&b, "<h2><button onclick='navigator.clipboard.writeText(%q)'>Copy UUID</button></h2>", pk)
179180
for _, tableRow := range tableRows { //#nosec
180181
fmt.Fprintf(&b, "<h3>%s</h3>", html.EscapeString(tableRow.Table))
181182
fmt.Fprintf(&b, "<table>")

0 commit comments

Comments
 (0)