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.

39 lines
828 B
Vue
Raw Normal View History

2019-12-04 20:38:33 +05:30
<script>
2023-04-23 21:23:45 +05:30
import { TYPE_ISSUE } from '~/issues/constants';
2019-12-04 20:38:33 +05:30
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,
2023-04-23 21:23:45 +05:30
default: TYPE_ISSUE,
2019-12-04 20:38:33 +05:30
},
},
2021-03-11 19:13:27 +05:30
computed: {
availability() {
return this.user?.availability || '';
},
},
2019-12-04 20:38:33 +05:30
};
</script>
<template>
2022-07-23 23:45:48 +05:30
<button type="button" class="gl-button btn-link">
2019-12-04 20:38:33 +05:30
<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>