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

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

38 lines
766 B
Vue
Raw Normal View History

2019-12-04 20:38:33 +05:30
<script>
import AssigneeAvatar from './assignee_avatar.vue';
2021-03-11 19:13:27 +05:30
import UserNameWithStatus from './user_name_with_status.vue';
2019-12-04 20:38:33 +05:30
export default {
components: {
AssigneeAvatar,
2021-03-11 19:13:27 +05:30
UserNameWithStatus,
2019-12-04 20:38:33 +05:30
},
props: {
user: {
type: Object,
required: true,
},
issuableType: {
type: String,
required: false,
default: 'issue',
},
},
2021-03-11 19:13:27 +05:30
computed: {
availability() {
return this.user?.availability || '';
},
},
2019-12-04 20:38:33 +05:30
};
</script>
<template>
<button type="button" class="btn-link">
<assignee-avatar :user="user" :img-size="24" :issuable-type="issuableType" />
2021-03-11 19:13:27 +05:30
<user-name-with-status
:name="user.name"
:availability="availability"
container-classes="author"
/>
2019-12-04 20:38:33 +05:30
</button>
</template>