Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_profile: Fix faulty custom profile field copy buttons.
Sayam Samalb57a2610352f
diff --git a/web/src/user_profile.ts b/web/src/user_profile.tsindex 00ee0e0d82b..cd345604b6b 100644--- a/web/src/user_profile.ts+++ b/web/src/user_profile.ts@@ -1271,4 +1271,16 @@ export function initialize(): void {assert(e.trigger instanceof HTMLElement);show_copied_confirmation(e.trigger);});++ new ClipboardJS(".copy-custom-field-url", {+ text(trigger) {+ const $custom_link = $(trigger).parent().find(".custom-profile-fields-link");+ return $custom_link.attr("href") ?? "";+ },+ }).on("success", (e) => {+ assert(e.trigger instanceof HTMLElement);+ show_copied_confirmation(e.trigger, {+ show_check_icon: true,+ });+ });}