Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
9535717c
Commit
9535717c
authored
May 31, 2017
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename exposed property for better understanding
parent
73067e1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/groups/stores/groups_store.js
app/assets/javascripts/groups/stores/groups_store.js
+2
-2
app/serializers/group_entity.rb
app/serializers/group_entity.rb
+2
-2
No files found.
app/assets/javascripts/groups/stores/groups_store.js
View file @
9535717c
...
@@ -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
:
{},
};
};
}
}
...
...
app/serializers/group_entity.rb
View file @
9535717c
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment