mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
user_card_popover: Add tooltip for status clear button.
Previously, the tooltip for the status clear button was scoped to only the personal menu popover. This commit moves that logic to `tippyjs.ts` and adds support for the status clear button in the user card popover.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import $ from "jquery";
|
||||
import * as tippy from "tippy.js";
|
||||
|
||||
import render_navbar_personal_menu_popover from "../templates/popovers/navbar/navbar_personal_menu_popover.hbs";
|
||||
|
||||
@@ -37,11 +36,6 @@ export function initialize() {
|
||||
const $popper = $(instance.popper);
|
||||
popover_menus.popover_instances.personal_menu = instance;
|
||||
|
||||
tippy.default(".personal-menu-clear-status", {
|
||||
placement: "top",
|
||||
appendTo: document.body,
|
||||
});
|
||||
|
||||
$popper.on("change", "input[name='theme-select']", (e) => {
|
||||
const new_theme_code = $(e.currentTarget).attr("data-theme-code");
|
||||
channel.patch({
|
||||
|
||||
@@ -601,6 +601,12 @@ export function initialize(): void {
|
||||
},
|
||||
});
|
||||
|
||||
tippy.delegate("body", {
|
||||
target: ".personal-menu-clear-status",
|
||||
placement: "top",
|
||||
appendTo: () => document.body,
|
||||
});
|
||||
|
||||
tippy.delegate("body", {
|
||||
/*
|
||||
The tooltip for new user group button (+) icon button on #groups
|
||||
|
||||
Reference in New Issue
Block a user