mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 04:43:58 +00:00
tooltip: Render tooltips for Not subscribed and All channels tabs.
Render tooltips for both the tabs if the user is guest user. Fixes #21869.
This commit is contained in:
@@ -388,6 +388,20 @@ export function initialize(): void {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
tippy.delegate("body", {
|
||||||
|
target: [
|
||||||
|
"[data-tab-key='not-subscribed'].disabled",
|
||||||
|
"[data-tab-key='all-streams'].disabled",
|
||||||
|
].join(","),
|
||||||
|
content: $t({
|
||||||
|
defaultMessage: "You can only view channels that you are subscribed to.",
|
||||||
|
}),
|
||||||
|
appendTo: () => document.body,
|
||||||
|
onHidden(instance) {
|
||||||
|
instance.destroy();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
tippy.delegate("body", {
|
tippy.delegate("body", {
|
||||||
target: ".default-stream.default_stream_private_tooltip",
|
target: ".default-stream.default_stream_private_tooltip",
|
||||||
content: $t({
|
content: $t({
|
||||||
|
|||||||
Reference in New Issue
Block a user