debian-mirror-gitlab/app/assets/javascripts/sidebar/components/assignees/collapsed_assignee.vue

28 lines
514 B
Vue
Raw Normal View History

2019-12-04 20:38:33 +05:30
<script>
import AssigneeAvatar from './assignee_avatar.vue';
export default {
components: {
AssigneeAvatar,
},
props: {
user: {
type: Object,
required: true,
},
issuableType: {
type: String,
required: false,
default: 'issue',
},
},
};
</script>
<template>
<button type="button" class="btn-link">
<assignee-avatar :user="user" :img-size="24" :issuable-type="issuableType" />
<span class="author"> {{ user.name }} </span>
</button>
</template>