mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-11 19:03:51 +02:00
Fix friended tooltip
This commit is contained in:
@@ -356,7 +356,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="currentUser.id !== userDialog.id" class="x-friend-item" style="cursor: default">
|
||||
<TooltipWrapper side="top">
|
||||
<TooltipWrapper side="top" :disabled="userDialog.dateFriendedInfo.length < 2">
|
||||
<template #content>
|
||||
<template v-for="ref in userDialog.dateFriendedInfo" :key="ref.type">
|
||||
<span>{{ ref.type }}: {{ formatDateFilter(ref.created_at, 'long') }}</span
|
||||
|
||||
@@ -935,6 +935,7 @@ export const useUserStore = defineStore('User', () => {
|
||||
'Unfriend'
|
||||
]
|
||||
);
|
||||
const dateFriendedInfo = [];
|
||||
for (const notification of userNotifications) {
|
||||
if (notification.userId !== D.id) {
|
||||
continue;
|
||||
@@ -972,11 +973,12 @@ export const useUserStore = defineStore('User', () => {
|
||||
(notification.type === 'Unfriend' &&
|
||||
!appearanceSettingsStore.hideUnfriends)
|
||||
) {
|
||||
D.dateFriendedInfo.push(
|
||||
dateFriendedInfo.unshift(
|
||||
notification
|
||||
);
|
||||
}
|
||||
}
|
||||
D.dateFriendedInfo = dateFriendedInfo;
|
||||
displayNameMap.forEach(
|
||||
(updated_at, displayName) => {
|
||||
D.previousDisplayNames.push({
|
||||
|
||||
Reference in New Issue
Block a user