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 { ...@@ -127,8 +127,8 @@ export default class GroupsStore {
editPath: rawGroup.edit_path, editPath: rawGroup.edit_path,
isOpen: false, isOpen: false,
isOrphan: false, isOrphan: false,
numberProjects: rawGroup.number_projects, numberProjects: rawGroup.number_projects_with_delimiter,
numberUsers: rawGroup.number_users, numberUsers: rawGroup.number_users_with_delimiter,
subGroups: {}, subGroups: {},
}; };
} }
......
...@@ -32,11 +32,11 @@ class GroupEntity < Grape::Entity ...@@ -32,11 +32,11 @@ class GroupEntity < Grape::Entity
group.children.any? group.children.any?
end end
expose :number_projects do |group| expose :number_projects_with_delimiter do |group|
number_with_delimiter(group.projects.non_archived.count) number_with_delimiter(group.projects.non_archived.count)
end end
expose :number_users do |group| expose :number_users_with_delimiter do |group|
number_with_delimiter(group.users.count) number_with_delimiter(group.users.count)
end end
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