pleroma-fe/src/components/chat_title/chat_title.js

24 lines
571 B
JavaScript
Raw Normal View History

2022-07-20 12:54:51 +03:00
import { defineAsyncComponent } from 'vue'
2026-01-08 17:26:52 +02:00
import RichContent from 'src/components/rich_content/rich_content.jsx'
2026-01-06 16:23:17 +02:00
import UserAvatar from '../user_avatar/user_avatar.vue'
2020-05-07 16:10:53 +03:00
export default {
2020-05-07 16:10:53 +03:00
name: 'ChatTitle',
components: {
2022-03-17 08:37:01 +02:00
UserAvatar,
2022-07-20 12:54:51 +03:00
RichContent,
2026-01-06 16:22:52 +02:00
UserPopover: defineAsyncComponent(
() => import('../user_popover/user_popover.vue'),
),
2020-05-07 16:10:53 +03:00
},
2026-01-06 16:22:52 +02:00
props: ['user', 'withAvatar'],
2020-05-07 16:10:53 +03:00
computed: {
2026-01-06 16:22:52 +02:00
title() {
return this.user ? this.user.screen_name_ui : ''
2020-05-07 16:10:53 +03:00
},
2026-01-06 16:22:52 +02:00
htmlTitle() {
2020-05-07 16:10:53 +03:00
return this.user ? this.user.name_html : ''
2026-01-06 16:22:52 +02:00
},
},
}