Commit 9535717c authored by Alfredo Sumaran's avatar Alfredo Sumaran

Rename exposed property for better understanding

parent 73067e1c
......@@ -127,8 +127,8 @@ export default class GroupsStore {
editPath: rawGroup.edit_path,
isOpen: false,
isOrphan: false,
numberProjects: rawGroup.number_projects,
numberUsers: rawGroup.number_users,
numberProjects: rawGroup.number_projects_with_delimiter,
numberUsers: rawGroup.number_users_with_delimiter,
subGroups: {},
};
}
......
......@@ -32,11 +32,11 @@ class GroupEntity < Grape::Entity
group.children.any?
end
expose :number_projects do |group|
expose :number_projects_with_delimiter do |group|
number_with_delimiter(group.projects.non_archived.count)
end
expose :number_users do |group|
expose :number_users_with_delimiter do |group|
number_with_delimiter(group.users.count)
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment