From 17f4eb1a56c961c5bf5696c16075d3db4afee51a Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 11 Aug 2024 16:26:24 -0400 Subject: [PATCH] Make it easier to copy ids from the profile view. --- apps/ssb/tf-profile.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/ssb/tf-profile.js b/apps/ssb/tf-profile.js index 4a490440..0be1822f 100644 --- a/apps/ssb/tf-profile.js +++ b/apps/ssb/tf-profile.js @@ -188,6 +188,10 @@ class TfProfileElement extends LitElement { } } + copy_id() { + navigator.clipboard.writeText(this.id); + } + render() { if ( this.id == this.whoami && @@ -287,6 +291,14 @@ class TfProfileElement extends LitElement { let description = this.editing?.description ?? profile.description; return html`
(${tfutils.human_readable_size(this.size)}) +
+
+ +
+
+ +
+
${edit_profile}