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

28 lines
736 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-06-02 18:09:12 +03:00
import UserAvatar from 'src/components/user_avatar/user_avatar.vue'
import UserPopover from 'src/components/user_popover/user_popover.vue'
2020-05-07 16:10:53 +03:00
2026-05-13 16:12:52 +03:00
import { useMergedConfigStore } from 'src/stores/merged_config.js'
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-06-02 18:09:12 +03:00
UserPopover,
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
},
2026-05-10 17:21:49 +03:00
allowNonSquareEmoji() {
return useMergedConfigStore().mergedConfig.nonSquareEmoji
},
2026-01-06 16:22:52 +02:00
},
}