Copy chart link button

This commit is contained in:
Geomitron
2024-01-17 17:25:56 -06:00
parent 8855d532b9
commit ad5d6fab9c
3 changed files with 12 additions and 0 deletions

View File

@@ -73,6 +73,9 @@ export class ChartSidebarMenutComponent implements OnInit {
.replace(/^\/|\/$/g, '')
}
copyLink(hash: string) {
navigator.clipboard.writeText(`https://enchor.us/?hash=${hash}`)
}
copyHash(hash: string) {
navigator.clipboard.writeText(hash)
}