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.

popovers: Use keys instead of names for tab navigation in profile modal.

m-e-l-u-h-a-n6cce478bced3
diff --git a/static/js/popovers.js b/static/js/popovers.js
index 0aff1314874..43db3b72dc8 100644
--- a/static/js/popovers.js
+++ b/static/js/popovers.js
@@ -431,11 +431,11 @@ export function show_user_profile(user) {
callback(name, key) {
$(".tabcontent").hide();
$("#" + key).show();
- switch (name) {
- case "User groups":
+ switch (key) {
+ case "groups-tab":
render_user_group_list(groups_of_user, user);
break;
- case "Streams":
+ case "streams-tab":
render_user_stream_list(user_streams, user);
break;
}