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