debian-mirror-gitlab/app/assets/javascripts/members/components/avatars/group_avatar.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
702 B
Vue
Raw Normal View History

2021-01-03 14:25:43 +05:30
<script>
import { GlAvatarLink, GlAvatarLabeled } from '@gitlab/ui';
2021-02-22 17:27:13 +05:30
import { AVATAR_SIZE } from '../../constants';
2021-01-03 14:25:43 +05:30
export default {
name: 'GroupAvatar',
avatarSize: AVATAR_SIZE,
components: { GlAvatarLink, GlAvatarLabeled },
props: {
member: {
type: Object,
required: true,
},
},
computed: {
group() {
return this.member.sharedWithGroup;
},
},
};
</script>
<template>
<gl-avatar-link :href="group.webUrl">
<gl-avatar-labeled
:label="group.fullName"
:src="group.avatarUrl"
:alt="group.fullName"
:size="$options.avatarSize"
:entity-name="group.name"
:entity-id="group.id"
/>
</gl-avatar-link>
</template>