components
This commit is contained in:
parent
c9dede920e
commit
dbc9bd9c46
46 changed files with 247 additions and 160 deletions
|
|
@ -1,7 +1,10 @@
|
|||
import { mapState } from 'pinia'
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
|
||||
import UserCard from '../user_card/user_card.vue'
|
||||
|
||||
import { useSyncConfigStore } from 'src/stores/sync_config.js'
|
||||
|
||||
const UserPopover = {
|
||||
name: 'UserPopover',
|
||||
props: ['userId', 'overlayCenters', 'disabled', 'overlayCentersSelector'],
|
||||
|
|
@ -9,14 +12,11 @@ const UserPopover = {
|
|||
UserCard,
|
||||
Popover: defineAsyncComponent(() => import('../popover/popover.vue')),
|
||||
},
|
||||
computed: {
|
||||
userPopoverAvatarAction() {
|
||||
return this.$store.getters.mergedConfig.userPopoverAvatarAction
|
||||
},
|
||||
userPopoverOverlay() {
|
||||
return this.$store.getters.mergedConfig.userPopoverOverlay
|
||||
},
|
||||
},
|
||||
computed: mapState(useSyncConfigStore, {
|
||||
userPopoverAvatarAction: (state) =>
|
||||
state.mergedConfig.userPopoverAvatarAction,
|
||||
userPopoverOverlay: (state) => state.mergedConfig.userPopoverOverlay,
|
||||
}),
|
||||
}
|
||||
|
||||
export default UserPopover
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue