Client: Add sort by people

This commit is contained in:
Aleksandr Lushkin 2024-08-20 12:46:56 +02:00
parent 58c1194990
commit f3a749b6dd
2 changed files with 8 additions and 2 deletions

View File

@ -53,7 +53,6 @@ class GroupsTableHeader extends React.Component {
key: "People",
title: props.t("Common:People"),
enable: props.peopleAccountsGroupsColumnIsEnabled,
default: true,
sortBy: "membersCount",
onClick: this.onFilter,
resizable: true,

View File

@ -2021,6 +2021,13 @@ const SectionFilterContent = ({
default: true,
};
const people = {
id: "sort-by_people",
key: "membersCount",
label: t("Common:People"),
default: true,
};
const manager = {
id: "sort-by_manager",
key: "manager",
@ -2028,7 +2035,7 @@ const SectionFilterContent = ({
default: true,
};
groupsOptions.push(title, manager);
groupsOptions.push(title, people, manager);
return groupsOptions;
}