Commit 00226a94 authored by kushalpandya's avatar kushalpandya

Import `group_identicon` minor clean up and prop updates

parent 59377d54
<script> <script>
import eventHub from '../event_hub'; import eventHub from '../event_hub';
import groupIdenticon from './group_identicon.vue';
export default { export default {
components: {
groupIdenticon,
},
props: { props: {
group: { group: {
type: Object, type: Object,
...@@ -93,11 +97,7 @@ export default { ...@@ -93,11 +97,7 @@ export default {
return Object.keys(this.group.subGroups).length > 0; return Object.keys(this.group.subGroups).length > 0;
}, },
hasAvatar() { hasAvatar() {
if (this.group.avatarUrl) { return this.group.avatarUrl && this.group.avatarUrl.indexOf('/assets/no_group_avatar') === -1;
return this.group.avatarUrl.indexOf('/assets/no_group_avatar') === -1;
} else {
return false;
}
}, },
}, },
}; };
...@@ -207,8 +207,8 @@ export default { ...@@ -207,8 +207,8 @@ export default {
/> />
<group-identicon <group-identicon
v-else v-else
:id=group.id :entityId=group.id
:name="group.name" :entityName="group.name"
/> />
</a> </a>
</div> </div>
......
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