Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

demo-orgs: Update tooltip text for disabled manage API key button.

Lauryn Menard8d8ebaf84254
diff --git a/web/src/tippyjs.ts b/web/src/tippyjs.ts
index 7c8fe9c0f3a..77c51831322 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({