mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
user_group_popover: Don't show group settings link for system groups.
System groups are immutable and that's why we should remove the group settings link from the group popover for system groups.
This commit is contained in:
committed by
Tim Abbott
parent
20f83b944f
commit
2b572628d0
@@ -100,6 +100,7 @@ export function toggle_user_group_info_popover(
|
||||
),
|
||||
group_edit_url: hash_util.group_edit_url(group, "general"),
|
||||
is_guest: current_user.is_guest,
|
||||
is_system_group: group.is_system_group,
|
||||
};
|
||||
instance.setContent(ui_util.parse_html(render_user_group_info_popover(args)));
|
||||
},
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
{{/each}}
|
||||
</ul>
|
||||
</li>
|
||||
{{#unless is_guest}}
|
||||
{{#unless (or is_guest is_system_group)}}
|
||||
<li role="separator" class="popover-menu-separator hidden-for-spectators"></li>
|
||||
<li role="none" class="link-item popover-menu-list-item hidden-for-spectators">
|
||||
<a href="{{group_edit_url}}" role="menuitem" class="navigate-link-on-enter popover-menu-link" tabindex="0">
|
||||
|
||||
Reference in New Issue
Block a user