Commit 0b594f68 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Display number of users and number of projects for each group

parent a9921e9d
<script> <script>
/* eslint-disable no-alert */
import eventHub from '../event_hub'; import eventHub from '../event_hub';
export default { export default {
...@@ -29,7 +31,7 @@ export default { ...@@ -29,7 +31,7 @@ export default {
}, },
leaveGroup() { leaveGroup() {
eventHub.$emit('leaveGroup', this.group.leavePath); eventHub.$emit('leaveGroup', this.group.leavePath);
} },
}, },
computed: { computed: {
groupDomId() { groupDomId() {
...@@ -98,9 +100,9 @@ export default { ...@@ -98,9 +100,9 @@ export default {
<i aria-hidden="true" class="fa fa-bookmark"></i> <i aria-hidden="true" class="fa fa-bookmark"></i>
{{group.numberProjects}} {{group.numberProjects}}
</span> </span>
<span class="number-members"> <span class="number-users">
<i aria-hidden="true" class="fa fa-users"></i> <i aria-hidden="true" class="fa fa-users"></i>
{{group.numberMembers}} {{group.numberUsers}}
</span> </span>
<span class="group-visibility"> <span class="group-visibility">
<i aria-hidden="true" class="fa fa-globe"></i> <i aria-hidden="true" class="fa fa-globe"></i>
......
...@@ -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: 10, numberProjects: rawGroup.number_projects,
numberMembers: 10, numberUsers: rawGroup.number_users,
subGroups: {}, subGroups: {},
}; };
} }
......
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