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.

tippy: Directly use `content` property to set content.

Aman Agrawal65f9dbc5f306
diff --git a/static/js/tippyjs.js b/static/js/tippyjs.js
index c2f7f6a4f10..e55acf0e8dc 100644
--- a/static/js/tippyjs.js
+++ b/static/js/tippyjs.js
@@ -467,13 +467,9 @@ export function initialize() {
delegate("body", {
target: "#show_all_private_messages",
placement: "bottom",
- onShow(instance) {
- instance.setContent(
- $t({
- defaultMessage: "All private messages (P)",
- }),
- );
- },
+ content: $t({
+ defaultMessage: "All private messages (P)",
+ }),
appendTo: () => document.body,
});
}