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:
Shubham Padia 2024-07-09 12:26:44 +00:00 committed by Tim Abbott
parent 20f83b944f
commit 2b572628d0
2 changed files with 2 additions and 1 deletions

View File

@ -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)));
}, },

View File

@ -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">