logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

chat_title.js (564B)


  1. import UserAvatar from '../user_avatar/user_avatar.vue'
  2. import RichContent from 'src/components/rich_content/rich_content.jsx'
  3. import { defineAsyncComponent } from 'vue'
  4. export default {
  5. name: 'ChatTitle',
  6. components: {
  7. UserAvatar,
  8. RichContent,
  9. UserPopover: defineAsyncComponent(() => import('../user_popover/user_popover.vue'))
  10. },
  11. props: [
  12. 'user', 'withAvatar'
  13. ],
  14. computed: {
  15. title () {
  16. return this.user ? this.user.screen_name_ui : ''
  17. },
  18. htmlTitle () {
  19. return this.user ? this.user.name_html : ''
  20. }
  21. }
  22. }