2021-01-03 14:25:43 +05:30
|
|
|
<script>
|
|
|
|
import { 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: 'InviteAvatar',
|
|
|
|
avatarSize: AVATAR_SIZE,
|
|
|
|
components: { GlAvatarLabeled },
|
|
|
|
props: {
|
|
|
|
member: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
invite() {
|
|
|
|
return this.member.invite;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<gl-avatar-labeled
|
|
|
|
:label="invite.email"
|
|
|
|
:src="invite.avatarUrl"
|
|
|
|
:alt="invite.email"
|
|
|
|
:size="$options.avatarSize"
|
|
|
|
:entity-name="invite.email"
|
|
|
|
:entity-id="member.id"
|
|
|
|
/>
|
|
|
|
</template>
|