mirror of https://github.com/zulip/zulip.git
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:
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"),
|
group_edit_url: hash_util.group_edit_url(group, "general"),
|
||||||
is_guest: current_user.is_guest,
|
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)));
|
instance.setContent(ui_util.parse_html(render_user_group_info_popover(args)));
|
||||||
},
|
},
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
{{#unless is_guest}}
|
{{#unless (or is_guest is_system_group)}}
|
||||||
<li role="separator" class="popover-menu-separator hidden-for-spectators"></li>
|
<li role="separator" class="popover-menu-separator hidden-for-spectators"></li>
|
||||||
<li role="none" class="link-item popover-menu-list-item hidden-for-spectators">
|
<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">
|
<a href="{{group_edit_url}}" role="menuitem" class="navigate-link-on-enter popover-menu-link" tabindex="0">
|
||||||
|
|
Loading…
Reference in New Issue