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

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

33 lines
591 B
Vue
Raw Normal View History

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>