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:
sujal shah
2024-05-09 02:10:59 +05:30
committed by Tim Abbott
parent 26ae173a2c
commit d793cc0f54

View File

@@ -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", {
target: ".default-stream.default_stream_private_tooltip",
content: $t({