Skip to content

Commit

Permalink
[group, department] moved items in the menu and added dividers to it (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
llj authored Sep 19, 2024
1 parent 960f549 commit fc65984
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/src/pages/groups/group-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,17 +355,18 @@ class GroupView extends React.Component {
const opList = [];
if ((!isDepartmentGroup && canAddRepo) ||
(isDepartmentGroup && isStaff)) {
opList.push({ 'text': gettext('New Library'), 'onClick': this.onCreateRepoToggle });
opList.push({ 'text': gettext('New Library'), 'onClick': this.onCreateRepoToggle }, 'Divider');
}
opList.push({ 'text': gettext('Members'), 'onClick': this.toggleMembersDialog });
if (currentGroup) {
if (isStaff || isOwner) {
opList.push({ 'text': gettext('Import members'), 'onClick': this.toggleImportMembersDialog });
opList.push({ 'text': gettext('Manage members'), 'onClick': this.toggleManageMembersDialog });
opList.push('Divider');
opList.push({ 'text': gettext('Rename'), 'onClick': this.toggleRenameGroupDialog });
if (isOwner) {
opList.push({ 'text': gettext('Transfer'), 'onClick': this.toggleTransferGroupDialog });
}
opList.push({ 'text': gettext('Import members'), 'onClick': this.toggleImportMembersDialog });
opList.push({ 'text': gettext('Manage members'), 'onClick': this.toggleManageMembersDialog });
if (isOwner) {
opList.push({ 'text': gettext('Delete group'), 'onClick': this.toggleDismissGroupDialog });
}
Expand Down

0 comments on commit fc65984

Please sign in to comment.