mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-06 02:33:48 +00:00
40 lines
1.2 KiB
Vue
40 lines
1.2 KiB
Vue
<template>
|
|
<div class="flex items-center justify-between">
|
|
<div class="flex items-center leading-none">
|
|
<MemberAvatar :size="52" :is-border="false" :member="user" />
|
|
<div class="pl-4">
|
|
<b class="mb-1 block font-bold leading-none">
|
|
{{ user.data.relationships.settings.data.attributes.name }}
|
|
</b>
|
|
<span class="text-theme text-sm font-semibold leading-none">
|
|
{{ user.data.attributes.email }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<NotificationBell @click.native="openNotificationPopup" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import MemberAvatar from './MemberAvatar'
|
|
import NotificationBell from '../../Notifications/Components/NotificationBell'
|
|
import { events } from '../../../bus'
|
|
import { mapGetters } from 'vuex'
|
|
|
|
export default {
|
|
name: 'UserHeadline',
|
|
components: {
|
|
NotificationBell,
|
|
MemberAvatar,
|
|
},
|
|
computed: {
|
|
...mapGetters(['user']),
|
|
},
|
|
methods: {
|
|
openNotificationPopup() {
|
|
events.$emit('popup:open', { name: 'notifications-mobile' })
|
|
},
|
|
},
|
|
}
|
|
</script>
|