From 8d8ebaf84254d77453470c8a12c201b44e0def2b Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Thu, 24 Apr 2025 18:56:40 +0200 Subject: [PATCH] demo-orgs: Update tooltip text for disabled manage API key button. Part of #34447. --- web/src/tippyjs.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/web/src/tippyjs.ts b/web/src/tippyjs.ts index 7c8fe9c0f3..77c5183132 100644 --- a/web/src/tippyjs.ts +++ b/web/src/tippyjs.ts @@ -449,10 +449,7 @@ export function initialize(): void { }); tippy.delegate("body", { - target: [ - "#api_key_button_container.disabled_setting_tooltip", - "#user_email_address_dropdown_container.disabled_setting_tooltip", - ].join(","), + target: "#user_email_address_dropdown_container.disabled_setting_tooltip", content: $t({ defaultMessage: "You must configure your email to access this feature.", }), @@ -462,6 +459,17 @@ export function initialize(): void { }, }); + tippy.delegate("body", { + target: "#api_key_button_container.disabled_setting_tooltip", + content: $t({ + defaultMessage: "Add an email to access your API key.", + }), + appendTo: () => document.body, + onHidden(instance) { + instance.destroy(); + }, + }); + tippy.delegate("body", { target: "[data-tab-key='invite-email-tab'].disabled", content: $t({