aboutsummaryrefslogtreecommitdiff
path: root/src/components/notification
diff options
context:
space:
mode:
authorSean King <seanking2919@protonmail.com>2022-08-06 22:02:21 -0600
committerSean King <seanking2919@protonmail.com>2022-08-06 22:02:21 -0600
commitdc9951d400fc6f4e9080d29589bf186fb081f4f6 (patch)
tree06491c209236128adaf47644babd2ade44c490e3 /src/components/notification
parent18d69f93d38dc15a74db81ee4c10b4766bebfc35 (diff)
parent610720f164dc9fcf36f9df33bddec5ac9c654e1e (diff)
Fix merge conflicts
Diffstat (limited to 'src/components/notification')
-rw-r--r--src/components/notification/notification.js6
-rw-r--r--src/components/notification/notification.vue25
2 files changed, 17 insertions, 14 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js
index 8f74c0e6..f60a1a6a 100644
--- a/src/components/notification/notification.js
+++ b/src/components/notification/notification.js
@@ -6,6 +6,7 @@ import UserCard from '../user_card/user_card.vue'
import Timeago from '../timeago/timeago.vue'
import Report from '../report/report.vue'
import RichContent from 'src/components/rich_content/rich_content.jsx'
+import UserPopover from '../user_popover/user_popover.vue'
import { isStatusNotification } from '../../services/notification_utils/notification_utils.js'
import { highlightClass, highlightStyle } from '../../services/user_highlighter/user_highlighter.js'
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
@@ -40,7 +41,7 @@ const Notification = {
unmuted: false
}
},
- props: [ 'notification' ],
+ props: ['notification'],
components: {
StatusContent,
UserAvatar,
@@ -48,7 +49,8 @@ const Notification = {
Timeago,
Status,
Report,
- RichContent
+ RichContent,
+ UserPopover
},
methods: {
toggleUserExpanded () {
diff --git a/src/components/notification/notification.vue b/src/components/notification/notification.vue
index ebbe5f95..6a5417b3 100644
--- a/src/components/notification/notification.vue
+++ b/src/components/notification/notification.vue
@@ -34,21 +34,22 @@
<a
class="avatar-container"
:href="$router.resolve(userProfileLink).href"
- @click.stop.prevent.capture="toggleUserExpanded"
+ @click.prevent
>
- <UserAvatar
- :compact="true"
- :better-shadow="betterShadow"
- :user="notification.from_profile"
- />
+ <UserPopover
+ :user-id="notification.from_profile.id"
+ :overlay-centers="true"
+ >
+ <UserAvatar
+ class="post-avatar"
+ :bot="botIndicator"
+ :compact="true"
+ :better-shadow="betterShadow"
+ :user="notification.from_profile"
+ />
+ </UserPopover>
</a>
<div class="notification-right">
- <UserCard
- v-if="userExpanded"
- :user-id="getUser(notification).id"
- :rounded="true"
- :bordered="true"
- />
<span class="notification-details">
<div class="name-and-action">
<!-- eslint-disable vue/no-v-html -->