2017-05-06 00:15:04 -04:00
|
|
|
<script>
|
2017-05-08 16:22:26 -04:00
|
|
|
import eventHub from '../event_hub';
|
|
|
|
|
2017-05-06 00:15:04 -04:00
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
group: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
2017-05-08 16:22:26 -04:00
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
toggleSubGroups() {
|
|
|
|
eventHub.$emit('toggleSubGroups', this.group);
|
|
|
|
},
|
|
|
|
},
|
2017-05-06 00:15:04 -04:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2017-05-08 16:22:26 -04:00
|
|
|
<tr @click="toggleSubGroups">
|
|
|
|
<template >
|
|
|
|
<td>
|
|
|
|
<span>
|
|
|
|
<i
|
|
|
|
v-show="group.isOpen"
|
|
|
|
class="fa fa-caret-down"
|
|
|
|
aria-hidden="true" />
|
|
|
|
<i
|
|
|
|
v-show="!group.isOpen"
|
|
|
|
class="fa fa-caret-right"
|
|
|
|
aria-hidden="true"/>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div>
|
|
|
|
<a :href="group.web_url">{{group.full_name}}</a>
|
|
|
|
</div>
|
|
|
|
<div>{{group.description}}</div>
|
|
|
|
</td>
|
|
|
|
</template>
|
2017-05-06 00:15:04 -04:00
|
|
|
</tr>
|
|
|
|
</template>
|